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
1 changed files with 4 additions and 4 deletions

View File

@ -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);
});
//});
});
}
};