Skip to main content

did_fail_on_assert

Function did_fail_on_assert 

Source
pub(crate) fn did_fail_on_assert<FEN: FoundryEvmNetwork>(
    call_result: &RawCallResult<FEN>,
    state_changeset: &StateChangeset,
) -> bool
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.