TypeError: Cannot read properties of undefined (reading 'toString') #2307
-
My frontend is showing this error message: Also, my front page doesn't have any styles on it, though I have applied tailwind styling and everything. Also when I go to the front page, the metamask connects automatically even when I have not clicked on the button. My repo link is: https://github.com/ashrth/Decentralized-Raffle |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
Make sure you are connecting to the supported chain and before connecting, Make sure your node is running |
Beta Was this translation helpful? Give feedback.
-
@ashrth Make sure the ABI is correctly shifted to the frontend constant file. You can manually copy the abi from the contract code, go to artifacts => contracts => SELECT THE CONTRACT => INSIDE .json FILE => copy the abi array (start from |
Beta Was this translation helpful? Give feedback.
-
Before I look into the code, can you think of any possibilities for getEntranceFee to be undefined? |
Beta Was this translation helpful? Give feedback.
Make sure you are connecting to the supported chain and before connecting, Make sure your node is running