Skip to content

Lesson 7, Error: Invalid Chai property: revertedWith #4803

Answered by paulcoffee85
paulcoffee85 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok nevermind. Looks like the fix is require("@nomicfoundation/hardhat-chai-matchers") in heardhat.config.js
As I already had "@nomicfoundation/hardhat-chai-matchers": "^1.0.6", in my dependencies.

Credit ==> https://stackoverflow.com/a/73781832/8066713

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by paulcoffee85
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
2 participants