Signature
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.