Commit d5d9a143 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #321 from ethereum/fix-vm-runcall

Fix useCall in VM mode
parents 910396b0 de773c44
...@@ -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