don't estimate gas which was overriding caller given gas param

This commit is contained in:
Iuri Matias 2018-09-26 18:34:46 -04:00
parent 11aed3c894
commit a99541f47d

View File

@ -50,9 +50,9 @@ let Utils = {
}, 100); }, 100);
} }
toSend.estimateGas() //toSend.estimateGas()
.then(gasEstimated => { // .then(gasEstimated => {
params.gas = gasEstimated + 1000; //params.gas = gasEstimated + 1000;
return toSend.send(params, function(err, transactionHash) { return toSend.send(params, function(err, transactionHash) {
if (err) { if (err) {
return callback(err); return callback(err);
@ -68,7 +68,7 @@ let Utils = {
} }
web3.eth.getTransactionReceipt(hash, callback); web3.eth.getTransactionReceipt(hash, callback);
}).catch(callback); }).catch(callback);
}); //});
}); });
} }
}; };