Skip to main content

invariant_handler_failure

Function invariant_handler_failure 

Source
fn invariant_handler_failure<FEN: FoundryEvmNetwork>(
    target: Address,
    selector: Selector,
    assertion_failure: bool,
    invariant_fns: &[(&Function, bool)],
    call_result: &RawCallResult<FEN>,
    fingerprint: Option<B256>,
) -> Option<ReplayFailure>
Expand description

Returns a ReplayFailure::Handler if a handler call should be treated as a bug, mirroring the campaign: assertion failures always count, plain reverts only count under fail_on_revert and are never counted for vm.assume rejects.