-
Following the video at 13:17:38, after connecting my MetaMask to the HardHat-Localhost, when i try to click the Fund button in Fund Me App, i run into this error. Here is my code from index.js below ***import { ethers } from "./ethers-5.6.esm.min.js" const connectButton = document.getElementById("connectButton") console.log(ethers) async function connect() { I am not sure if its a error in my code after doing some research online, but i am having trouble narrowing down where the error is coming from. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Was getting the same problem, this made it work:
Try this and let us know if it helped |
Beta Was this translation helpful? Give feedback.
Was getting the same problem, this made it work:
hardhat node
, disconnect metamask from your websitehardhat node
, create a new account on metamask using the private key of the 2ndnode
account (instead of the 1st)Try this and let us know if it helped