@safe:guard
Transaction guard address of a Safe (the zero address when no guard is set).
⚗️ Experimental — available at next.evmcrispr.com.
Returns: address
Syntax
Section titled “Syntax”@safe:guard(safe?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[safe] | address | Safe address (defaults to the context Safe or connected account) |
Examples
Section titled “Examples”# TODO: add examplesSee Also
Section titled “See Also”On-chain face (@guard!)
Section titled “On-chain face (@guard!)”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.
Examples
Section titled “Examples”load safe
set $safe 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
assert @safe:guard!($safe) == 0x0000000000000000000000000000000000000000 "guard installed"