Cannot solve Error: Invalid Chai property: revertedWith #5800
-
I am trying to run a test on my contract using hardhat and chai. But I am running into this error. I have tried install ethereum-waffle. But it did not solve the problem. I also added ethereum-waffle using require to my hardhat config but that gave this error-
Here is my FundMe.test file-
Here is my hardhat config file-
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
please share your repo |
Beta Was this translation helpful? Give feedback.
-
Hi @alfaqi Here is the repo- |
Beta Was this translation helpful? Give feedback.
-
Hi @alfaqi your advice has solved the issue ! Thank you so much ! But now I am getting this error even though I am parsing 1 eth-
The transaction is reverting with the message from the contract and not the test for some reason. |
Beta Was this translation helpful? Give feedback.
-
this helped me
|
Beta Was this translation helpful? Give feedback.
Hi @alfaqi Here is the repo-
link to the repo