Skip to content

How to hardhat Lesson 10 #5140

Discussion options

You must be logged in to vote

@Sosiaalinen Here; Make sure the lotteryAddress is not undefined and same as for hardhat network you deployed. Also make sure the AbI contains the getEntranceFee function.

const { runContractFunction: getEntranceFee } = useWeb3Contract({
    abi: abi,
    contractAddress: lotteryAddress,
    functionName: "getEntranceFee",
    params: {},
})

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@alymurtazamemon
Comment options

@Sosiaalinen
Comment options

@alymurtazamemon
Comment options

@Sosiaalinen
Comment options

@Sosiaalinen
Comment options

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