Merge pull request #19 from ethereum/patch/fix-gas-costs

Require ethereumjs-vm 1.4.0 to have 'consistent' gas costs
pull/1/head
chriseth 9 years ago
commit ffcc6a8535
  1. 2
      package.json
  2. 2
      src/universal-dapp.js

@ -9,7 +9,7 @@
"devDependencies": {
"es6-shim": "^0.35.1",
"ethereumjs-block": "^1.2.2",
"ethereumjs-vm": "^1.3.0",
"ethereumjs-vm": "^1.4.0",
"merkle-patricia-tree": "^2.1.2",
"ethereumjs-util": "^4.4.0",
"ethereumjs-tx": "^1.1.1",

@ -21,7 +21,7 @@ function UniversalDApp (contracts, options) {
this.BN = ethJSUtil.BN;
this.stateTrie = new Trie();
this.vm = new EthJSVM(this.stateTrie);
this.vm = new EthJSVM(this.stateTrie, null, { activatePrecompiles: true });
this.addAccount('3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511')
this.addAccount('2ac6c190b09897cd8987869cc7b918cfea07ee82038d492abce033c75c1b1d0c')

Loading…
Cancel
Save