Skip to content

Fix usage of expectEmit in MetaTransactionsFeatureV2 tests #727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2023

Conversation

abls
Copy link
Contributor

@abls abls commented May 31, 2023

Description

We are using forge's vm.expectEmit incorrectly in a few tests causing the tests to fail. This change corrects our usage in MetaTransactionV2Test.t.sol. The tests were previously passing, perhaps because of some bug in forge that must have been patched recently.

Testing instructions

forge test --match-contract MetaTransactionTest

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

@abls abls requested review from dekz and dextracker as code owners May 31, 2023 16:10
@abls abls requested a review from patrick-dowell May 31, 2023 16:14
Copy link
Contributor

@patrick-dowell patrick-dowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this out locally. It turns out my forge was a bit out of date and while it was passing on the old version, the new version correctly fails these tests without your fix. LGTM!

@abls abls merged commit 20961ef into development Jun 4, 2023
@abls abls deleted the fix/tests-MetaTransactionsFeatureV2 branch June 4, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants