Skip to content

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

@clauBv23

Description

@clauBv23

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Next Up

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions