foundry-rs / foundry-rs/foundry
feat(`cheatcodes`): add `expect*Call` cheatcodes
- Dominant language
- Rust
- Stars
- 10.6k
- Forks
- 2.6k
- Avg merge
- 18h 20m
- Merged PRs (30d)
- 510
Description
### Component
Forge
### Describe the feature you would like
Follow up of https://github.com/foundry-rs/foundry/issues/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
- [x] `expectCreate`: Expects the deployment of the specified bytecode by the specified address using the `CREATE` opcode
- [x] `expectCreate2`: Expects the deployment of the specified bytecode by the specified address using the `CREATE2` opcode
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.