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';
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 HARDFORK = 'istanbul';
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`);
for (let chunkIndex = 0; chunkIndex < chunkedInputParams.length; chunkIndex++) {
await waitForTx(
await atokenAndRatesDeployer.configureReserves(chunkedInputParams[chunkIndex], {
gasLimit: 8000000, // TODO: Change this
})
await atokenAndRatesDeployer.configureReserves(chunkedInputParams[chunkIndex])
);
console.log(` - Init for: ${chunkedSymbols[chunkIndex].join(', ')}`);
}