diff --git a/packages/hardhat/hardhat.config.ts b/packages/hardhat/hardhat.config.ts index cca7680c0..68ce49a69 100644 --- a/packages/hardhat/hardhat.config.ts +++ b/packages/hardhat/hardhat.config.ts @@ -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: {