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