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

pull/1/head
Alex Beregszaszi 9 years ago
parent 61544ab3fc
commit 7b9e9af51d
  1. 2
      src/universal-dapp.js

@ -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");
}
}

Loading…
Cancel
Save