You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Downloaded Dapp includes undefined window.web3 code. This definition is unnecessary and overwrites the actual setting, making the code unable to connect to the server.
Steps to reproduce
Create a new project from the Hello World template
Set Custom network (in Select a Network button)* or any other network
Deploy HelloWorld.sol
Paste in the 12 word seed and proceed with deployment
Open Preview panel
Click Download DApp button
Inspect the downloaded html file
*Running a custom network:
a) Run Ganache (desktop application)
b) Go to Settings gear icon;
c) In Server settings, set Port Number to 8545;
d) In Chain settings, set Gas Limit to 7900000.
e) Click SAVE AND RESTART
f) Copy the MNEMONIC (12-word seed) shown in the ACCOUNT screen
Expected result
Expected the Hello World example to run.
Actual result
Console output:
superblocks_dapp_hello.html: Using Superblocks web3 provider for endpoint: undefined
Environment/Browser
Lab 1.6.1.
Still valid on version
1.7.0
.Description
Downloaded Dapp includes undefined
window.web3
code. This definition is unnecessary and overwrites the actual setting, making the code unable to connect to the server.Steps to reproduce
*Running a custom network:
Expected result
Expected the Hello World example to run.
Actual result
Console output:
Renders with missing arguments.
How to solve it
Remove the following snippet from the output:
The text was updated successfully, but these errors were encountered: