Skip to main content

is_assertion_failure

Function is_assertion_failure 

Source
pub(crate) fn is_assertion_failure<FEN: FoundryEvmNetwork>(
    call_result: &RawCallResult<FEN>,
) -> bool
Expand description

Returns true if this call failed due to a Solidity assertion:

  • Panic(0x01), or
  • legacy invalid opcode assert behavior.