From a99541f47d3fbae5d3f2e53bc0bba5ee936b37ec Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 26 Sep 2018 18:34:46 -0400 Subject: [PATCH] don't estimate gas which was overriding caller given gas param --- src/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.js b/src/utils.js index 0a66102..f2fdee9 100644 --- a/src/utils.js +++ b/src/utils.js @@ -50,9 +50,9 @@ let Utils = { }, 100); } - toSend.estimateGas() - .then(gasEstimated => { - params.gas = gasEstimated + 1000; + //toSend.estimateGas() + // .then(gasEstimated => { + //params.gas = gasEstimated + 1000; return toSend.send(params, function(err, transactionHash) { if (err) { return callback(err); @@ -68,7 +68,7 @@ let Utils = { } web3.eth.getTransactionReceipt(hash, callback); }).catch(callback); - }); + //}); }); } };