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

mockCall count #4513

Closed
reubenr0d opened this issue Mar 9, 2023 · 0 comments · Fixed by #4833
Closed

mockCall count #4513

reubenr0d opened this issue Mar 9, 2023 · 0 comments · Fixed by #4833
Labels
A-cheatcodes Area: cheatcodes C-forge Command: forge Cmd-forge-test Command: forge test T-feature Type: feature

Comments

@reubenr0d
Copy link
Contributor

reubenr0d commented Mar 9, 2023

Component

Forge

Describe the feature you would like

Currently we can only assert that a call is made to a function using expectCall(), it would be nice to have another cheatcode to check the number of time a call was made, which can also be useful to assert if a call is not made.

Eg. function expectCall(address target, bytes calldata, uint256 count)

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes C-forge Command: forge Cmd-forge-test Command: forge test T-feature Type: feature
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants