From b34499c5309a49a16e6f8d9624647b8e3e8378f9 Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Mon, 21 Jun 2021 09:42:50 +0200 Subject: [PATCH] feat: added possibility to discard bytecode max size --- hardhat.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardhat.config.ts b/hardhat.config.ts index 10b4402b..278577bb 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -30,6 +30,7 @@ const HARDFORK = 'istanbul'; const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || ''; const MNEMONIC_PATH = "m/44'/60'/0'/0"; const MNEMONIC = process.env.MNEMONIC || ''; +const UNLIMITED_BYTECODE_SIZE = process.env.UNLIMITED_BYTECODE_SIZE === 'true'; // Prevent to load scripts before compilation and typechain if (!SKIP_LOAD) { @@ -104,6 +105,7 @@ const buidlerConfig: HardhatUserConfig = { blockGasLimit: DEFAULT_BLOCK_GAS_LIMIT, gas: DEFAULT_BLOCK_GAS_LIMIT, gasPrice: 8000000000, + allowUnlimitedContractSize: UNLIMITED_BYTECODE_SIZE, chainId: BUIDLEREVM_CHAINID, throwOnTransactionFailures: true, throwOnCallFailures: true,