Signature
IB20.sol
Description
BindsnewPolicyId to policyScope. Takes effect immediately: the next operation that consults that scope calls isAuthorized(newPolicyId, account) on the Policy Registry. Emits PolicyUpdated.
Until a scope is updated it holds 0 (ALWAYS_ALLOW), so the check passes for every address.
Parameters
Reverts
Access Control
DEFAULT_ADMIN_ROLE gates this call. During token creation, initCalls may bind policies in the same transaction; those calls bypass the role gate.
Policy Scopes
The recognized scopes and the accounts they check are:
Transfer scopes are skipped on factory
initCalls transfers. MINT_RECEIVER_POLICY is always checked, including factory initCalls mints. SEIZE_EXEMPT_POLICY unset (ALWAYS_ALLOW) means no account is seizable.
Example
Usage Example
updatePolicy call is needed.