Commit 40bc8f60 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #333 from ethereum/fixVMProvider

Remove need to call releaseCurrentHash
parents 16daf117 f6eeed04
...@@ -834,13 +834,12 @@ UniversalDApp.prototype.rawRunTx = function (args, cb) { ...@@ -834,13 +834,12 @@ 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
if (args.useCall) { if (args.useCall) {
self.vm.stateManager.revert(function () {}) self.vm.stateManager.revert(function () {})
} }
cb(err, { cb(err, {
result: result, result: result,
transactionHash: transactionHash transactionHash: ethJSUtil.bufferToHex(new Buffer(tx.hash()))
}) })
}) })
} catch (e) { } catch (e) {
......
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