expectEmit
does not work when making a constant call
#1214
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (6130af7 2022-04-06T00:04:11.858449+00:00)
What command(s) is the bug in?
forge test
Operating System
macOS (M1)
Describe the bug
I created a repo for reproducing this bug:
https://github.com/paulrberg/foundry-expect-emit-bug
testEmitMyEvent_v1
passes, buttestEmitMyEvent_v2
doesn't. The only different is the fact thatv2
adds a constant call after theexpectEmit
call and the function that emits the event.The text was updated successfully, but these errors were encountered: