Skip to main content

is_extensible_fallback_handler

Function is_extensible_fallback_handler 

Source
pub fn is_extensible_fallback_handler(address: Address) -> bool
Expand description

Returns true if address is the canonical ExtensibleFallbackHandler contract.

Used to verify whether a Safe wallet has the correct fallback handler installed to support ComposableCow-based conditional orders via EIP-712 domain verifiers.

ยงExample

use cow_chains::contracts::EXTENSIBLE_FALLBACK_HANDLER;
use cow_composable::is_extensible_fallback_handler;

assert!(is_extensible_fallback_handler(EXTENSIBLE_FALLBACK_HANDLER));
assert!(!is_extensible_fallback_handler(alloy_primitives::Address::ZERO));