foundry-rs / foundry-rs/foundry
feat(`cheatcodes`): add support for `vm.expectCall` on internal calls
Open
A-cheatcodes
T-feature
T-post-V1
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 16h 38m
- Merged PRs (30d)
- 511
Description
### Component
Forge
### Describe the feature you would like
Currently, `expectCall` doesn’t work for internal calls.
This limitation is highlighted in the documentation, but seems like there is no open issue addressing this (issue #432 is closed).
I wonder if there is a workaround for achieving this in Foundry.
In case there isn't, I believe this would be a very helpful feature that would simplify the testing process significantly.
Having `expectCall` support internal calls would enhance the functionality and flexibility of Foundry's testing capabilities.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.