-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(cheatcode): expect revert only for calls with greater depth than test #9537
base: master
Are you sure you want to change the base?
Conversation
dccc236
to
8a0ea49
Compare
8a0ea49
to
284b0fc
Compare
284b0fc
to
93aec03
Compare
377735c
to
df77c40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@@ -86,6 +86,7 @@ contract AttachDelegationTest is DSTest { | |||
assertEq(token.balanceOf(bob), 200); | |||
} | |||
|
|||
/// forge-config: default.allow_internal_expect_revert = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated, pretty cool that this works
Co-authored-by: Matthias Seitz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Motivation
Closes #3723
Closes #7238
Closes #3437
Breaking change, should be merged after pinned version.
expectRevert
, compares with test depth (at which cheatcode was added). Does not apply for_expectCheatcodeRevert
calls.allow_internal_expect_revert
config to enable expect reverts for internal calls. defaults to falseSolution