Skip to content
Discussion options

You must be logged in to vote

@emmanuelf37 : You have to edit few changes I'm listing below :

Change this line of code from this : const raffleAddress = chainIdHex in contractAddresses ? contractAddresses[chainId][0] : null

To : const raffleAddress = chainId in contractAddresses ? contractAddresses[chainId][0] : null

Because in above line of code you have written : const chainId = parseInt(chainIdHex) So, thats why it will be chainId not chainIdHex

And also change this line of from this : const something = await getEntranceFee()

To : const something = (await getEntranceFee()).toString()

Then do : console.log(something)

Replies: 1 comment 2 replies

Comment options

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

@leander006
Comment options

Answer selected by emmanuelf37
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