Skip to content

Commit

Permalink
enable solidity optimizer by default (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamas Molnar authored Jun 13, 2023
1 parent e77565c commit 3780407
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ const deployerPrivateKey =
const etherscanApiKey = process.env.ETHERSCAN_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW";

const config: HardhatUserConfig = {
solidity: "0.8.17",
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
// https://docs.soliditylang.org/en/latest/using-the-compiler.html#optimizer-options
runs: 200,
},
},
},
defaultNetwork: "localhost",
namedAccounts: {
deployer: {
Expand Down

0 comments on commit 3780407

Please sign in to comment.