mockCall count #4513
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-feature
Type: feature
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
The text was updated successfully, but these errors were encountered: