acl:set-target-closed
Close or reopen a contract managed by an AccessManager. While closed, all calls to its restricted functions revert.
⚗️ Experimental — available at next.evmcrispr.com.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”acl:set-target-closed <manager> <target> <closed>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
manager | address | Runtime in smart blocks | AccessManager address |
target | address | Runtime in smart blocks | Managed contract address |
closed | bool | Runtime in smart blocks | true to close, false to reopen |
Examples
Section titled “Examples”load acl
set $manager 0xc0dbDcA66a0636236fAbe1B3C16B1bD4C84bB1E1set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
# Emergency-stop every restricted function of the managed tokenacl:set-target-closed $manager $token true
# Reopen itacl:set-target-closed $manager $token false- While closed, all restricted calls to the target revert regardless of roles — including for admins.
See Also
Section titled “See Also”- acl:set-target-function-role — per-function roles