LESSON 7: Custom Error is no longer working with revertedWith() #4379
selimmidikoglu
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Nice, I was trying to debug this. The catching was showing the thrown error as the custom error that was given but it kept failing anyways. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
revertedWith()
works with string errors. If we want to use Custom Error, need to userevertedWithCustomError(contractInstace, customErrorName)
Beta Was this translation helpful? Give feedback.
All reactions