Merge pull request #23 from embark-framework/gas_fix

don't estimate gas which was overriding caller given gas param
This commit is contained in:
Iuri Matias 2018-09-26 18:40:18 -04:00 committed by GitHub
commit 36c2088fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
});
//});
});
}
};