Skip to content

Lesson 7: 11:20:38 -> TypeError: ethers.getContract is not a function #305

Answered by gmluqa
DorianDaSilva asked this question in Q&A
Discussion options

You must be logged in to vote

As @PatrickAlphaC said, here is a cannonical answer seperated from the reply section.

Error fixed by adding await expect(fundMe.fund()).to.be.reverted instead of previous code although still are figuring out why it can't work without .revertedWith("error");

Replies: 3 comments 6 replies

Comment options

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

@gmluqa
Comment options

@PatrickAlphaC
Comment options

Comment options

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

@DorianDaSilva
Comment options

Comment options

You must be logged in to vote
1 reply
@shailu2006
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
4 participants