mirror of
https://github.com/embarklabs/EmbarkJS.git
synced 2026-08-30 21:21:09 +00:00
don't estimate gas which was overriding caller given gas param
This commit is contained in:
+4
-4
@@ -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);
|
||||
});
|
||||
//});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user