Skip to main content

did_fail_on_assert

Function did_fail_on_assert 

Source
pub fn did_fail_on_assert<FEN: FoundryEvmNetwork>(
    call_result: &RawCallResult<FEN>,
    state_changeset: &PendingState,
) -> bool
Expand description

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

This covers Solidity assert, legacy invalid-opcode assertions, any failed vm.assert* (whatever its message, and even if the call reverted afterwards or caught the assertion revert), and the GLOBAL_FAIL_SLOT written by legacy fail().