Move enableHomestead parameter to constructor from runTx

pull/1/head
Alex Beregszaszi 9 years ago
parent 477430e631
commit 977bb61236
  1. 4
      src/universal-dapp.js

@ -23,7 +23,7 @@ function UniversalDApp (contracts, options) {
this.accounts = {};
this.vm = new EthJSVM(null, null, { activatePrecompiles: true });
this.vm = new EthJSVM(null, null, { activatePrecompiles: true, enableHomestead: true });
this.addAccount('3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511');
this.addAccount('2ac6c190b09897cd8987869cc7b918cfea07ee82038d492abce033c75c1b1d0c');
@ -649,7 +649,7 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
transactions: [],
uncleHeaders: []
});
this.vm.runTx({block: block, tx: tx, skipBalance: true, skipNonce: true, enableHomestead: true}, cb);
this.vm.runTx({block: block, tx: tx, skipBalance: true, skipNonce: true}, cb);
} catch (e) {
cb(e, null);
}

Loading…
Cancel
Save