Signature
IB20.sol
Description
Updates the policy ID assigned topolicyScope. Takes effect immediately for the next operation that consults this slot. Emits PolicyUpdated.
Parameters
Reverts
AccessControlUnauthorizedAccountwhen the caller does not holdDEFAULT_ADMIN_ROLE.UnsupportedPolicyTypewhenpolicyScopeis not recognized by this token.PolicyNotFoundwhennewPolicyIdis not a built-in sentinel and does not exist in the registry.
Access Control
DEFAULT_ADMIN_ROLE gates this call. Factory initCalls bypass the role gate during creation.
Policy Interaction
Reads or writes a token policy-scope pointer into the PolicyRegistry.Example
Usage Example