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
Hello,
I am fairly new to Ethereum development, I just tried to follow this tutorial but instead of connection to a public blockchain I am trying to connect to my local blockchain instance through MetaMask which is already installed and the local chain is added to it. However, I am facing an issue at the first line of my code during the "require" part. Here is my code below:
Hello,
I am fairly new to Ethereum development, I just tried to follow this tutorial but instead of connection to a public blockchain I am trying to connect to my local blockchain instance through MetaMask which is already installed and the local chain is added to it. However, I am facing an issue at the first line of my code during the "require" part. Here is my code below:
And the error I am facing is below:
Uncaught ReferenceError: require is not defined at code.js:1:20
Can anyone help me with solving this issue? I followed the tutorial step-by-step but doesn't seem to work for me..
Note: I have already written my own contract and deployed it to my local blockchain and that is where I got all these functions and the address from.
The text was updated successfully, but these errors were encountered: