Commit dbcabbb5 authored by Iuri Matias's avatar Iuri Matias Committed by yann300

handle error from runTx

parent 52f37734
......@@ -112,6 +112,9 @@ 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 () {})
}
......
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