Skip to content

ExpectRevert not catching Revert in super() #2236

Answered by onbjerg
jordaniza asked this question in Help
Discussion options

You must be logged in to vote

Oh, right. This is because it works for the next call - makeMessage is the next call, and it doesn't revert. I'm not sure why I didn't catch that earlier, I'm sorry. Essentially you need to call makeMessage before calling vm.expectRevert

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@jordaniza
Comment options

@jordaniza
Comment options

@onbjerg
Comment options

onbjerg Jul 7, 2022
Collaborator

@jordaniza
Comment options

@jordaniza
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jordaniza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants