Replies: 3 comments 6 replies
-
Is there a space/new line on top of your actual file too? Can't comprehend which one is the 30th line because of it. Could you paste the relevant code as above, or a repo works too. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @dgbweb3 , hope u doing fine and didn't let this problem stopped u! Look at this lines:
At raffleAddress, u are evaluating if chainIdHex is in contractAddresses, but chainIdHex is a Hex number (i.e 0xblabla). So, u want to evaluate chainId instead! Remember that in contractAddresses we are setting the key as NUMBERS and not HEX NUMBER! i know it's been a long time since u post this problem, but hoping this answer help someone else! Cheers fellows! |
Beta Was this translation helpful? Give feedback.
-
This error is because "sent" is either null or undefined and "sent" is generated apparently by moralis' function call to "getEntranceFee()" and the null/undef. could be because you are not connected with metamask to hardhat node/network. So, verify if you have added hardhat network in Metamakask, use it and add one of the private keys of one of the addresses that "hardhat node" command prints in terminal and leave open and running the "hh node" connection in the terminal before you connect to the next.js "yarn run dev" localhost:3000 app |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My frontend gives me an error
Unhandled Runtime Error
TypeError: _ctx.sent is undefined
components/LotteryEntrance.js (30:22) @ _callee$
28 | if (isWeb3Enabled) {
29 | async function updateUI() {
LotteryEntrance.js
Beta Was this translation helpful? Give feedback.
All reactions