Signature
Description
Updates the policy ID assigned topolicyScope. Takes effect immediately for the next
operation that consults this slot. Emits PolicyUpdated.
Dev: Reverts with AccessControlUnauthorizedAccount when the caller does not hold DEFAULT_ADMIN_ROLE.
Dev: Reverts with UnsupportedPolicyType when policyScope is not recognized by this token.
Dev: Reverts with PolicyNotFound when newPolicyId is not a built-in sentinel and does not exist in the registry.
Param: policyScope Policy slot scope.
Param: newPolicyId Policy ID to assign to the slot.
Access control
DEFAULT_ADMIN_ROLE gates this call. Factory initCalls bypass the role gate during creation.