Skip to content

@safe:guard

Transaction guard address of a Safe (the zero address when no guard is set).

⚗️ Experimental — available at next.evmcrispr.com.

Returns: address

@safe:guard(safe?)
NameTypeDescription
[safe]addressSafe address (defaults to the context Safe or connected account)
# TODO: add examples

Read the guard slot at assertion time through the Safe's own getStorageAt(slot, 1) view — the slot value's word is unwrapped from the returned bytes envelope with a core pick, so no raw eth_getStorageAt is needed.

load safe
set $safe 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @safe:guard!($safe) == 0x0000000000000000000000000000000000000000 "guard installed"