Commit a2dae608 authored by yann300's avatar yann300

fix #319

parent 9e192eb6
...@@ -58,7 +58,12 @@ TxRunner.prototype.execute = function () { ...@@ -58,7 +58,12 @@ TxRunner.prototype.execute = function () {
} }
if (args.useCall) { if (args.useCall) {
tx.gas = gasLimit tx.gas = gasLimit
self.web3.eth.call(tx, callback) self.web3.eth.call(tx, function (error, result) {
callback(error, {
result: result,
transactionHash: result.transactionHash
})
})
} else { } else {
self.web3.eth.estimateGas(tx, function (err, resp) { self.web3.eth.estimateGas(tx, function (err, resp) {
if (err) { if (err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment