From a47917f24ad2050cf0afd2c99441b78e0efa2e2a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 5 Nov 2016 10:08:11 +0000 Subject: [PATCH] Update to ethereumjs-vm 2.0.1 --- package.json | 2 +- src/app/execution-context.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e8fa07857d..eca5f0e5b0 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "ethereumjs-block": "^1.2.2", "ethereumjs-tx": "^1.1.1", "ethereumjs-util": "^4.4.0", - "ethereumjs-vm": "^1.4.0", + "ethereumjs-vm": "^2.0.1", "http-server": "0.9.0", "jquery": "^2.2.0", "js-base64": "^2.1.9", diff --git a/src/app/execution-context.js b/src/app/execution-context.js index a00bbc22f6..aa5453404d 100644 --- a/src/app/execution-context.js +++ b/src/app/execution-context.js @@ -16,7 +16,10 @@ if (typeof window.web3 !== 'undefined') { web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545')) } -var vm = new EthJSVM(null, null, { activatePrecompiles: true, enableHomestead: true }) +var vm = new EthJSVM({ + enableHomestead: true, + activatePrecompiles: true +}) vm.stateManager.checkpoint() /*