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

[DO NOT MERGE] fix(cheatcode): expect revert only for calls with greater depth than test #9537

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

grandizzy
Copy link
Collaborator

@grandizzy grandizzy commented Dec 11, 2024

Motivation

Closes #3723
Closes #7238
Closes #3437

Breaking change, should be merged after pinned version.

  • record max depth of next call after expectRevert, compares with test depth (at which cheatcode was added). Does not apply for _expectCheatcodeRevert calls.
  • add allow_internal_expect_revert config to enable expect reverts for internal calls. defaults to false
  • fix and add tests

Solution

@grandizzy grandizzy added the T-likely-breaking Type: requires changes that can be breaking label Dec 11, 2024
@grandizzy grandizzy force-pushed the issue-7238 branch 2 times, most recently from dccc236 to 8a0ea49 Compare December 11, 2024 14:53
@grandizzy grandizzy changed the title [WIP] fix(cheatcode): expect revert only for calls with greater depth [WIP] fix(cheatcode): expect revert only for calls with greater depth than test Dec 11, 2024
@grandizzy grandizzy changed the title [WIP] fix(cheatcode): expect revert only for calls with greater depth than test [DO NOT MERGE] fix(cheatcode): expect revert only for calls with greater depth than test Dec 12, 2024
@grandizzy grandizzy marked this pull request as ready for review December 12, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-likely-breaking Type: requires changes that can be breaking
Projects
Status: No status
1 participant