Merge pull request #163 from aave/feat/hardhat-unlimited-codsize

feat: Add possibility to discard bytecode max size in hardhat conf
This commit is contained in:
The-3D 2021-07-05 18:33:29 +02:00 committed by GitHub
commit ca74be898b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,