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

Fix: returning from a call without result
pull/7/head
yann300 6 years ago committed by GitHub
commit 80d5f80ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      remix-lib/src/execution/txRunner.js

@ -135,7 +135,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal
return executionContext.web3().eth.call(tx, function (error, result) {
callback(error, {
result: result,
transactionHash: result.transactionHash
transactionHash: result ? result.transactionHash : null
})
})
}
@ -187,7 +187,7 @@ function tryTillResponse (txhash, done) {
} else {
done(err, {
result: result,
transactionHash: result.transactionHash
transactionHash: result ? result.transactionHash : null
})
}
})

Loading…
Cancel
Save