fix: Fix harcoded gas limit value on helpers

This commit is contained in:
miguelmtzinf 2021-08-17 18:37:21 +02:00
parent 3119882c91
commit 19cc58f30d
2 changed files with 2 additions and 4 deletions

View File

@ -30,7 +30,7 @@ import 'solidity-coverage';
import { fork } from 'child_process'; import { fork } from 'child_process';
const SKIP_LOAD = process.env.SKIP_LOAD === 'true'; const SKIP_LOAD = process.env.SKIP_LOAD === 'true';
const DEFAULT_BLOCK_GAS_LIMIT = 12450000; const DEFAULT_BLOCK_GAS_LIMIT = 8000000;
const DEFAULT_GAS_MUL = 5; const DEFAULT_GAS_MUL = 5;
const HARDFORK = 'istanbul'; const HARDFORK = 'istanbul';
const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || ''; const ETHERSCAN_KEY = process.env.ETHERSCAN_KEY || '';

View File

@ -270,9 +270,7 @@ export const configureReservesByHelper = async (
console.log(`- Configure reserves in ${chunkedInputParams.length} txs`); console.log(`- Configure reserves in ${chunkedInputParams.length} txs`);
for (let chunkIndex = 0; chunkIndex < chunkedInputParams.length; chunkIndex++) { for (let chunkIndex = 0; chunkIndex < chunkedInputParams.length; chunkIndex++) {
await waitForTx( await waitForTx(
await atokenAndRatesDeployer.configureReserves(chunkedInputParams[chunkIndex], { await atokenAndRatesDeployer.configureReserves(chunkedInputParams[chunkIndex])
gasLimit: 8000000, // TODO: Change this
})
); );
console.log(` - Init for: ${chunkedSymbols[chunkIndex].join(', ')}`); console.log(` - Init for: ${chunkedSymbols[chunkIndex].join(', ')}`);
} }