You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent update to Foundry has altered the behaviour of the expectEmit cheatcode, which is breaking our current test suite. In the past, expectEmit could be called at any point before the function that would cause the event to be emitted. However, the recent update requires that expectEmit is called immediately before the triggering function.
Our existing tests that are checking for emits now fail due to this change, in order to fix our test suite we need to update all tests to place expectEmit immediately before the respective call that triggered the event.
Acceptance Criteria
Refactor tests to ensure that expectEmit is invoked immediately before the call that triggers the event emission
All tests pass
The text was updated successfully, but these errors were encountered:
Description
A recent update to Foundry has altered the behaviour of the
expectEmit
cheatcode, which is breaking our current test suite. In the past,expectEmit
could be called at any point before the function that would cause the event to be emitted. However, the recent update requires thatexpectEmit
is called immediately before the triggering function.Our existing tests that are checking for emits now fail due to this change, in order to fix our test suite we need to update all tests to place
expectEmit
immediately before the respective call that triggered the event.Acceptance Criteria
expectEmit
is invoked immediately before the call that triggers the event emissionThe text was updated successfully, but these errors were encountered: