Skip to content

Commit

Permalink
optimize compilation runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Apr 15, 2024
1 parent f8c449a commit 37ee0c4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,17 @@ const itsCompilerSettings = {
evmVersion: process.env.EVM_VERSION || 'london',
optimizer: {
...optimizerSettings,
runs: 100, // Reduce runs to keep bytecode size under limit
runs: 800, // Reduce runs to keep bytecode size under limit
},
},
};
const itsTestCompilerSettings = {
version: '0.8.21',
settings: {
evmVersion: process.env.EVM_VERSION || 'london',
optimizer: {
...optimizerSettings,
runs: 200, // Reduce runs to keep bytecode size under limit
},
},
};
Expand All @@ -58,7 +68,7 @@ module.exports = {
'contracts/proxies/Proxy.sol': compilerSettings,
'contracts/proxies/TokenManagerProxy.sol': compilerSettings,
'contracts/InterchainTokenService.sol': itsCompilerSettings,
'contracts/test/TestInterchainTokenService.sol': itsCompilerSettings,
'contracts/test/TestInterchainTokenService.sol': itsTestCompilerSettings,
},
},
defaultNetwork: 'hardhat',
Expand Down

0 comments on commit 37ee0c4

Please sign in to comment.