Commit de773c44 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Fix useCall in VM mode

parent 593e47f1
...@@ -836,7 +836,7 @@ UniversalDApp.prototype.rawRunTx = function (args, cb) { ...@@ -836,7 +836,7 @@ UniversalDApp.prototype.rawRunTx = function (args, cb) {
self.vm.runTx({block: block, tx: tx, skipBalance: true, skipNonce: true}, function (err, result) { self.vm.runTx({block: block, tx: tx, skipBalance: true, skipNonce: true}, function (err, result) {
var transactionHash = self.txdebugger.web3().releaseCurrentHash() // used to keep track of the transaction var transactionHash = self.txdebugger.web3().releaseCurrentHash() // used to keep track of the transaction
if (args.useCall) { if (args.useCall) {
self.vm.stateManager.revert() self.vm.stateManager.revert(function () {})
} }
cb(err, { cb(err, {
result: result, result: result,
......
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