Skip to content

FundMe Constructor Test Error #253

Answered by PatrickAlphaC
Abhisek0x asked this question in Q&A
Discussion options

You must be logged in to vote

deployments.get returns a deployment object
ethers.getContract returns a contract object <- This is the one you want!

Try this in your test:

    fundMe = await ethers.getContract("Fundme", deployer);

Instead of what you have.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Abhisek0x
Comment options

@javierdash
Comment options

@Abhisek0x
Comment options

Comment options

You must be logged in to vote
1 reply
@Abhisek0x
Comment options

Answer selected by PatrickAlphaC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants