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

Document the meaning of call depth and call frames #1416

Closed
zerosnacks opened this issue Jan 31, 2025 · 0 comments · Fixed by #1428
Closed

Document the meaning of call depth and call frames #1416

zerosnacks opened this issue Jan 31, 2025 · 0 comments · Fixed by #1428
Assignees
Labels
T-enhancement Type: enhance existing docs

Comments

@zerosnacks
Copy link
Member

zerosnacks commented Jan 31, 2025

This is in relation to vm.expectRevert

https://book.getfoundry.sh/cheatcodes/expect-revert#error

When entering an external call this increments the call depth by one, when leaving it decreases by one

In internal calls there is no increase

@zerosnacks zerosnacks added the T-enhancement Type: enhance existing docs label Jan 31, 2025
@zerosnacks zerosnacks self-assigned this Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-enhancement Type: enhance existing docs
Projects
No open projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant