Skip to content

Is there a way to check for multiple events (of one tx) in a test case? #3585

Answered by 0xDEnYO
0xDEnYO asked this question in Help
Discussion options

You must be logged in to vote

Hey Guys,

I just found the issue.
It was the order of the vm.expectEmit() calls.
They have to be in the same order as the events which are being emitted (which makes sense but I didnt think of that).
Maybe makes sense to add a note about that in the docs?

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mds1
Comment options

Comment options

You must be logged in to vote
1 reply
@mds1
Comment options

Comment options

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