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

Fix useCall in VM mode
pull/1/head
chriseth 8 years ago committed by GitHub
commit d5d9a1438c
  1. 2
      src/universal-dapp.js

@ -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,

Loading…
Cancel
Save