-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment/Browser
1.6.1.
Still valid on version 1.7.0
Description
Downloaded Pizza template Dapp won't work. This appears to be related to the missing enable call to MetaMask, to allow accessing injected MetaMask accounts.
Steps to reproduce
- Create a new project from the CryptoPizza template
- Set Ropsten network (in Select a Network button) or any other external network
- Deploy CryptoPizza.sol
- Open Preview panel
- Click Download DApp button
- Run the downloaded html file locally
- Observe Browser Console error
Expected result
Expected it to work just like Preview.
Actual result
jquery.js:3827 Uncaught TypeError: Cannot read property 'eth' of undefined
Line is: window.web3.eth.accounts[0].
Related
- See also:
environmentUpdateEpic - Issue Downloaded dapp set to external network won't work #391
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working