Add Governor contracts (#2672)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -23,6 +23,8 @@ for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
|
||||
require(path.join(__dirname, 'hardhat', f));
|
||||
}
|
||||
|
||||
const withOptimizations = argv.enableGasReport || argv.compileMode === 'production';
|
||||
|
||||
/**
|
||||
* @type import('hardhat/config').HardhatUserConfig
|
||||
*/
|
||||
@ -31,7 +33,7 @@ module.exports = {
|
||||
version: '0.8.3',
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: argv.enableGasReport || argv.compileMode === 'production',
|
||||
enabled: withOptimizations,
|
||||
runs: 200,
|
||||
},
|
||||
},
|
||||
@ -39,6 +41,7 @@ module.exports = {
|
||||
networks: {
|
||||
hardhat: {
|
||||
blockGasLimit: 10000000,
|
||||
allowUnlimitedContractSize: !withOptimizations,
|
||||
},
|
||||
},
|
||||
gasReporter: {
|
||||
|
||||
Reference in New Issue
Block a user