Lesson 10: TypeError: can't access property "toString", _ctx.sent is undefined #6286
Unanswered
hoangglong-nguyen
asked this question in
Q&A
Replies: 2 comments 2 replies
-
const raffleAddress = chainId in contractAddresses ? contractAddresses[chainId] : null change that line of code to const raffleAddress = chainId in contractAddresses ? contractAddresses[chainId][0] : null you left the array [0] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Got the same bug |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried a lot of solutions on this thread relating to this bug, but none of them seem to work. My hardhat-localhost is running with metamask connected. I also console.log abi, raffleAddress, chainId and they all seem to have been connected correctly. I'm suspecting my runContractFunction is not working properly but I don't know how to fix it. Please help.
Here is my error and my console
Here is my 02-update-front-end.js
My LotteryEntrance.js
Beta Was this translation helpful? Give feedback.
All reactions