check result instead of previous early return fix

pull/7/head
Iuri Matias 7 years ago committed by yann300
parent 6eddacbe80
commit 30463c9a28
  1. 7
      remix-lib/src/execution/txRunner.js

@ -112,14 +112,13 @@ TxRunner.prototype.runInVm = function (from, to, data, value, gasLimit, useCall,
}
executionContext.vm().runTx({block: block, tx: tx, skipBalance: true, skipNonce: true}, function (err, result) {
if (err) {
return callback(err)
}
if (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