Skip to content
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

feat(cheatcodes): disable usage of expectRevert with other expect* cheatcodes #5138

Closed
Evalir opened this issue Jun 12, 2023 · 1 comment
Closed
Assignees
Labels
A-cheatcodes Area: cheatcodes D-average Difficulty: average

Comments

@Evalir
Copy link
Member

Evalir commented Jun 12, 2023

When something reverts, the whole transaction unwinds and it's like nothing happened. However, expectCalls and expectEmits are still matched. We should not allow this to happen, but rather error if we have both a revert and another expect cheatcode being used together at the same time, for the next call.

@Evalir
Copy link
Member Author

Evalir commented Jun 12, 2023

Merged into the expect-changes branch (see #5144).

@Evalir Evalir closed this as completed Jun 12, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes D-average Difficulty: average
Projects
Archived in project
Development

No branches or pull requests

1 participant