Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: count assertions for expectEmit (#640)
Ref: foundry-rs/foundry#9405 Adds the following cheatcodes to the interface: ```solidity /// Expect a given number of logs with the provided topics. function expectEmit(bool checkTopic1, bool checkTopic2, bool checkTopic3, bool checkData, uint64 count) external; /// Expect a given number of logs from a specific emitter with the provided topics. function expectEmit( bool checkTopic1, bool checkTopic2, bool checkTopic3, bool checkData, address emitter, uint64 count ) external; /// Expect a given number of logs with all topic and data checks enabled. function expectEmit(uint64 count) external; /// Expect a given number of logs from a specific emitter with all topic and data checks enabled. function expectEmit(address emitter, uint64 count) external;
- Loading branch information