Skip to main content

failure_provenance

Function failure_provenance 

Source
pub(crate) fn failure_provenance<FEN: FoundryEvmNetwork>(
    executor: &Executor<FEN>,
    config: &InvariantConfig,
    call: impl FnOnce(&mut Executor<FEN>) -> Option<RawCallResult<FEN>>,
) -> Option<B256>
Expand description

Runs a failing campaign call again with call on a copy of executor that records its failure identity and provenance. The campaign does not record them for every call, since that steps their instructions.

Returns the provenance of the identified failure, for minimization to check that a replay reached it. None without a shrink budget or when the failure is not identified, which minimization handles alike.