Commit 7b9e9af5 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Throw error if neither VM or Web3 mode is selected in udapp

parent 61544ab3
......@@ -23,6 +23,8 @@ function UniversalDApp (contracts, options) {
this.addAccount('2ac6c190b09897cd8987869cc7b918cfea07ee82038d492abce033c75c1b1d0c');
} else if (options.web3) {
this.web3 = options.web3;
} else {
throw new Error("Either VM or Web3 mode must be selected");
}
}
......
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