DEV Community

Discussion on: Ethereum Dapp Crash Course: Make an ERC20 token faucet + Frontend

Collapse
 
drdarian profile image
drdarian

I had the same issue. I fixed it by changing the 'tokenAddress' variable in Faucet.js.

I had originally put in the address for my Metamask wallet which caused the error. You should use the contract address given to you by your Hardhat terminal which you should receive after you call 'npx hardhat node'. It will be located after your hardhat_addCompilationResult