@@ -326,12 +326,22 @@ interface Vm is VmSafe {
326
326
function expectRevert (bytes calldata revertData ) external ;
327
327
function expectRevert (bytes4 revertData ) external ;
328
328
function expectRevert () external ;
329
+
330
+ // Prepare an expected log with all four checks enabled.
331
+ // Call this function, then emit an event, then call a function. Internally after the call, we check if
332
+ // logs were emitted in the expected order with the expected topics and data.
333
+ // Second form also checks supplied address against emitting contract.
334
+ function expectEmit () external ;
335
+ function expectEmit (address ) external ;
336
+
329
337
// Prepare an expected log with (bool checkTopic1, bool checkTopic2, bool checkTopic3, bool checkData).
330
338
// Call this function, then emit an event, then call a function. Internally after the call, we check if
331
- // logs were emitted in the expected order with the expected topics and data (as specified by the booleans)
339
+ // logs were emitted in the expected order with the expected topics and data (as specified by the booleans).
340
+ // Second form also checks supplied address against emitting contract.
332
341
function expectEmit (bool checkTopic1 , bool checkTopic2 , bool checkTopic3 , bool checkData ) external ;
333
342
function expectEmit (bool checkTopic1 , bool checkTopic2 , bool checkTopic3 , bool checkData , address emitter )
334
343
external ;
344
+
335
345
// Mocks a call to an address, returning specified data.
336
346
// Calldata can either be strict or a partial match, e.g. if you only
337
347
// pass a Solidity selector to the expected calldata, then the entire Solidity
0 commit comments