Lesson ReferenceError: contractAddres is not defined #2700
Answered
by
alymurtazamemon
Vic7Eugene
asked this question in
Q&A
-
Hi, In Lesson 8 (at around 13:14:46) I was setting up Web3Provider and was trying to make sure that my Fund button is working. const provider = new ethers.providers.Web3Provider(window.ethereum)
const signer = provider.getSigner()
const contract = new ethers.Contract(contractAddres, abi, signer)
const transactionResponse = await contract.fund({
value: ethers.utils.parseEthers(ethAmount),
}) I was using this for contractAddress = "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512" Then after clicking on the fund button, I am getting this error:
Can someone help me how to fix this error? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Sep 19, 2022
Replies: 1 comment 4 replies
-
@Vic7Eugene You should make sure this spelling |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Vic7Eugene You should make sure this spelling
contractAddres