junobuild_shared::mgmt::ic

Function update_canister_controllers

Source
pub async fn update_canister_controllers(
    canister_id: Principal,
    controllers: Vec<Principal>,
) -> CallResult<()>
Expand description

Asynchronously updates the controller list of a specified canister.

§Arguments

  • canister_id: Principal ID of the target canister.
  • controllers: New list of Principal IDs to set as controllers.

§Returns

  • A CallResult<()> indicating success or failure.