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): add support for vm.expectCall on internal calls #8474

Open
clauBv23 opened this issue Jul 19, 2024 · 0 comments
Open

feat(cheatcodes): add support for vm.expectCall on internal calls #8474

clauBv23 opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
A-cheatcodes Area: cheatcodes T-feature Type: feature

Comments

@clauBv23
Copy link

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

@clauBv23 clauBv23 added the T-feature Type: feature label Jul 19, 2024
@zerosnacks zerosnacks added the A-cheatcodes Area: cheatcodes label Jul 22, 2024
@zerosnacks zerosnacks changed the title Support for expectCall on Internal Calls feat(cheatcodes): add support for vm.expectCall on internal calls Jul 22, 2024
@zerosnacks zerosnacks added this to the v1.0.0 milestone Jul 26, 2024
@grandizzy grandizzy removed this from the v1.0.0 milestone Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes T-feature Type: feature
Projects
Status: Todo
Development

No branches or pull requests

3 participants