Lesson 9: ***AssertionError while Reverting Custom Error in Testing*** [SOLVED] #929
pratikbhangire123
started this conversation in
Show and tell
Replies: 2 comments 2 replies
-
thanks for the solution! I noticed that one close parenthesis is missing after enterRaffle(): await expect(raffle.enterRaffle()).to.be.revertedWithCustomError(raffle,"Raffle__NotEnoughETHEntered") |
Beta Was this translation helpful? Give feedback.
1 reply
-
why doesn't revertedWith("Raffle__NotEnoughETHEntered") work anymore? I think we were using this in the fund me contract that way, but it's not working in Raffle, and we now need the revertedWithCustomError to get it to work now, did they change something recently? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Section: Unit Test (15:28)
Problem
Throws the following error message:
Solution
Reference
According to Hardhat Docs
Beta Was this translation helpful? Give feedback.
All reactions