diff --git a/index.html b/index.html index a9348cea6d..570eb7fca7 100644 --- a/index.html +++ b/index.html @@ -517,7 +517,7 @@ THE SOFTWARE. .append(textRow('uDApp', combined(contractName,contract['interface'],contract.bytecode), 'deploy')) .append(getDetails(contract, source, contractName)); - if (executionContext == 'vm') $('#txorigin').text('0x' + dapp.address.toString('hex')); + if (executionContext === 'vm') $('#txorigin').text('0x' + dapp.address.toString('hex')); else web3.eth.getAccounts( function(err,accounts) { $('#txorigin').text(accounts[0]); }); diff --git a/libs/universal-dapp.js b/libs/universal-dapp.js index ae42084f47..e9f64ab65f 100644 --- a/libs/universal-dapp.js +++ b/libs/universal-dapp.js @@ -3,7 +3,7 @@ function UniversalDApp (contracts, options) { this.$el = $('
'); this.contracts = contracts; - if (web3.currentProvider) { + if (!options.vm && web3.currentProvider) { } else if (options.vm) { this.stateTrie = new EthVm.Trie();