Skip to main content

Signature

Description

Stages a proposed new admin for policyId. The active admin does not change until pendingAdmin calls finalizeUpdateAdmin. Dev: Reverts with PolicyNotFound when policyId does not exist. Dev: Reverts with Unauthorized when the caller is not the current admin. Param: policyId Policy whose admin is being staged. Param: newAdmin Proposed new admin, or address(0) to clear any pending nomination.

Access control

Callable by the policy admin for the target policy.

Policy interaction

This is part of the singleton PolicyRegistry surface used by B20 policy scopes.

Example