TypeError: Cannot read properties of undefined (reading 'toString') #4997
Answered
by
AtulBlockDev
AtulBlockDev
asked this question in
Q&A
-
I don't know why am i getting this issue. Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'toString')
Source
src/components/LotteryEntrance.jsx (37:68) @ toString
35 | async function updateUI(){
36 |
> 37 | const entranceFeeFromCall= (await getEntranceFee()).toString()
| ^
38 | setEntranceFee(entranceFeeFromCall)
39 |
40 | console.log(entranceFee) it seems like my getEntranceFee() function is not working. Can anyone figure out why? Link to my repos: |
Beta Was this translation helpful? Give feedback.
Answered by
AtulBlockDev
Mar 3, 2023
Replies: 1 comment
-
Worked! All i did is cleaned artifacts and cache and then re push the abi and contractadress to frontend. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AtulBlockDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked! All i did is cleaned artifacts and cache and then re push the abi and contractadress to frontend.