How do I migrate use ic_cdk::api::management_canister::main::CanisterIdRecord;
with the ic_cdk v0.18?
The new module api::management_canister
does not seem to expose the record.
How do I migrate use ic_cdk::api::management_canister::main::CanisterIdRecord;
with the ic_cdk v0.18?
The new module api::management_canister
does not seem to expose the record.
Ah nvm, got it. Those are not needed anymore because each function is now typed with a related struct.
For example:
// Old
let result = delete_canister(CanisterIdRecord { canister_id }).await;
//
let result = delete_canister(&DeleteCanisterArgs { canister_id }).await;