Skip to content

Lesson 10: getEntranceFee() call returns undefined #828

Answered by jeetb
Avelous asked this question in Q&A
Discussion options

You must be logged in to vote

@PatrickAlphaC Please look into this if you can, there's no solution to this as of yet. I'm facing the same issue and I also tried console.log(chainIdHex) after const { chainId: chainIdHex, isWeb3Enabled } = useMoralis() and I'm getting nan in the terminal with the front-end deployment. It seems like the useMoralis itself might be broken or updated and is no longer giving us the chainId.

Edit: Although, on second thought, the console in the browser does print 4 when I'm connected with the rinkeby network in metamask and I refresh, so the function may be fine. I'm not sure what the error could be then.

Edit#2: I've figured out the solution to this issue. You can find it here: #685 (reply i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PatrickAlphaC
Comment options

@jeetb
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants