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 expect*Call cheatcodes #9310

Open
7 tasks
grandizzy opened this issue Nov 13, 2024 · 1 comment
Open
7 tasks

feat(cheatcodes): add expect*Call cheatcodes #9310

grandizzy opened this issue Nov 13, 2024 · 1 comment
Labels
A-cheatcodes Area: cheatcodes good first issue Good for newcomers T-feature Type: feature

Comments

@grandizzy
Copy link
Collaborator

Component

Forge

Describe the feature you would like

Follow up of #4072 for adding remaining expect*Call cheatcodes

  • expect*Call cheatcodes: similar to expectEmit, these let us specify the expected call with its callee and calldata. We use these less frequently, but I think they can be useful even for fuzzing tests.

    • expectRegularCall: Expect a call using the CALL opcode and specified parameters
    • expectStaticCall: Expect a call using the STATICCALL opcode and specified parameters
    • expectDelegateCall: Expect a call using the DELEGATECALL opcode and specified parameters
    • expectNoCall: Expect no calls to be made after this cheat code
    • expectCreate: Expects the deployment of the specified bytecode by the specified address using the CREATE opcode
    • expectCreate2: Expects the deployment of the specified bytecode by the specified address using the CREATE2 opcode

Additional context

No response

@grandizzy grandizzy added T-feature Type: feature T-needs-triage Type: this issue needs to be labelled labels Nov 13, 2024
@github-project-automation github-project-automation bot moved this to Todo in Foundry Nov 13, 2024
@grandizzy grandizzy added good first issue Good for newcomers A-cheatcodes Area: cheatcodes and removed T-needs-triage Type: this issue needs to be labelled labels Nov 13, 2024
@Utilitycoder
Copy link

I would love to handle this issue. I will probably need the files that will be affected and where to draw inspiration from in the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes good first issue Good for newcomers T-feature Type: feature
Projects
Status: Todo
Development

No branches or pull requests

2 participants