Commit 977bb612 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Move enableHomestead parameter to constructor from runTx

parent 477430e6
......@@ -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);
}
......
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