Skip to main content

first_unmet_root_emit

Function first_unmet_root_emit 

Source
pub(crate) fn first_unmet_root_emit(
    tracker: &mut VecDeque<(ExpectedEmit, AddressHashMap<LogCountMap>)>,
    succeeded: bool,
) -> Option<&'static str>
Expand description

Checks for leftover expected emits when the root call ends without reverting.

Returns the failure message if any expectation is still unmatched. Callers must skip already-reverted calls to preserve their original failure.