Commit bff6dfdf authored by Alex Beregszaszi's avatar Alex Beregszaszi Committed by GitHub

Merge pull request #351 from ethereum/fixdecodeoutput

fix #319
parents 9e192eb6 a2dae608
...@@ -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