Skip to main content

Module expect

Module expect 

Source

Structsยง

ExpectedCallData
ExpectedCreate
ExpectedEmit
ExpectedRevert
LogCountMap

Enumsยง

CreateScheme
ExpectedCallType
The type of expected call.
ExpectedRevertKind
The type of expected revert.

Functionsยง

checks_topics_and_data ๐Ÿ”’
decode_event ๐Ÿ”’
expect_call ๐Ÿ”’
Handles expected calls specified by the expectCall cheatcodes.
expect_create ๐Ÿ”’
expect_emit ๐Ÿ”’
expect_revert ๐Ÿ”’
expect_safe_memory ๐Ÿ”’
get_emit_mismatch_message ๐Ÿ”’
Gets a detailed mismatch message for emit assertions
handle_expect_emit ๐Ÿ”’
name_mismatched_logs ๐Ÿ”’
Formats the generic mismatch message: โ€œlog != expected logโ€ to include event names if available
reconstruct_params ๐Ÿ”’
Restore the order of the params of a decoded event

Type Aliasesยง

ExpectedCallTracker
Tracks the expected calls per address.
ExpectedEmitTracker
Handles expected emits specified by the expectEmit cheatcodes.