Lesson 8 : Uncaught TypeError in Fund Button #517
-
Hello! I was in Lesson 8, fund button is not working although I have all the code correct. Here is the error after pressing Fund Button: index.html
index.js
constants.js I export the contract address ( from terminal FundMe deployed at 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 ) also exported the abi
Note that I added the ethers-5.6.esm.min.js and funded the wallet connected to the site. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Looks like your js is trying to read from field "ethAmount", which isn't defined in your HTML anywhere. |
Beta Was this translation helpful? Give feedback.
-
@zahraha97 you forgot to add this in HTML file |
Beta Was this translation helpful? Give feedback.
@zahraha97 you forgot to add this in HTML file
<input id="ethAmount" placeholder="0.1" />