Skip to main content

did_fail_on_assert

Function did_fail_on_assert 

Source
pub fn did_fail_on_assert<FEN>(
    call_result: &RawCallResult<FEN>,
    state_changeset: &HashMap<Address, Account, FbBuildHasher<20>>,
) -> bool
where FEN: FoundryEvmNetwork,
Expand description

Returns whether the current fuzz call should be treated as an assertion failure.

This covers Solidity assert, legacy invalid-opcode assertions, vm.assert* reverts, and the non-reverting GLOBAL_FAIL_SLOT path used when assertions_revert = false.