Merge pull request #759 from ethereum/handle_error

handle error from runTx
pull/3094/head
yann300 7 years ago committed by GitHub
commit 606a5d739a
  1. 4
      remix-lib/src/execution/txRunner.js

@ -116,7 +116,9 @@ TxRunner.prototype.runInVm = function (from, to, data, value, gasLimit, useCall,
executionContext.vm().stateManager.revert(function () {})
}
err = err ? err.message : err
result.status = '0x' + result.vm.exception.toString(16)
if (result) {
result.status = '0x' + result.vm.exception.toString(16)
}
callback(err, {
result: result,
transactionHash: ethJSUtil.bufferToHex(new Buffer(tx.hash()))

Loading…
Cancel
Save