From fa3623e4416327a86e6de39ffd25de156e86f810 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 23 Jul 2019 11:00:30 -0400 Subject: [PATCH] revert changes made to gasLimit --- remix-lib/src/execution/txRunner.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/remix-lib/src/execution/txRunner.js b/remix-lib/src/execution/txRunner.js index 7ad38fb02c..a8911981b8 100644 --- a/remix-lib/src/execution/txRunner.js +++ b/remix-lib/src/execution/txRunner.js @@ -94,16 +94,12 @@ class TxRunner { } } - runInVm (from, to, data, value, _gasLimit, useCall, timestamp, callback) { + runInVm (from, to, data, value, gasLimit, useCall, timestamp, callback) { const self = this var account = self.vmaccounts[from] if (!account) { return callback('Invalid account selected') } - let gasLimit = _gasLimit - if (!BN.isBN(_gasLimit)) { - gasLimit = new BN(_gasLimit) - } var tx = new EthJSTX({ timestamp: timestamp, @@ -124,7 +120,7 @@ class TxRunner { number: self.blockNumber, coinbase: coinbases[self.blockNumber % coinbases.length], difficulty: difficulties[self.blockNumber % difficulties.length], - gasLimit: new BN('8000000').imuln(1) + gasLimit: new BN(gasLimit, 10).imuln(2) }, transactions: [tx], uncleHeaders: []