Skip to content

Commit ca74be8

Browse files
authored
Merge pull request #163 from aave/feat/hardhat-unlimited-codsize
feat: Add possibility to discard bytecode max size in hardhat conf
2 parents 4e3701c + b34499c commit ca74be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hardhat.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const HARDFORK = 'istanbul';
3030
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || '';
3131
const MNEMONIC_PATH = "m/44'/60'/0'/0";
3232
const MNEMONIC = process.env.MNEMONIC || '';
33+
const UNLIMITED_BYTECODE_SIZE = process.env.UNLIMITED_BYTECODE_SIZE === 'true';
3334

3435
// Prevent to load scripts before compilation and typechain
3536
if (!SKIP_LOAD) {
@@ -104,6 +105,7 @@ const buidlerConfig: HardhatUserConfig = {
104105
blockGasLimit: DEFAULT_BLOCK_GAS_LIMIT,
105106
gas: DEFAULT_BLOCK_GAS_LIMIT,
106107
gasPrice: 8000000000,
108+
allowUnlimitedContractSize: UNLIMITED_BYTECODE_SIZE,
107109
chainId: BUIDLEREVM_CHAINID,
108110
throwOnTransactionFailures: true,
109111
throwOnCallFailures: true,

0 commit comments

Comments
 (0)