Unverified Commit 80d5f80f authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #947 from ethereum/yann300-patch-24

Fix: returning from a call without result
parents 9905f5fc 084ed0c9
...@@ -135,7 +135,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal ...@@ -135,7 +135,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
return executionContext.web3().eth.call(tx, function (error, result) { return executionContext.web3().eth.call(tx, function (error, result) {
callback(error, { callback(error, {
result: result, result: result,
transactionHash: result.transactionHash transactionHash: result ? result.transactionHash : null
}) })
}) })
} }
...@@ -187,7 +187,7 @@ function tryTillResponse (txhash, done) { ...@@ -187,7 +187,7 @@ function tryTillResponse (txhash, done) {
} else { } else {
done(err, { done(err, {
result: result, result: result,
transactionHash: result.transactionHash transactionHash: result ? result.transactionHash : null
}) })
} }
}) })
......
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