UpgradeCanisterOptions
Defined in: pocket-ic-types.ts:644
Options for upgrading a given canister with a WASM module. This will reset the canister’s heap, but preserve stable memory.
Properties
Section titled “Properties”
optionalarg:ArrayBufferLike
Defined in: pocket-ic-types.ts:660
Candid encoded argument to pass to the canister’s init function.
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: pocket-ic-types.ts:648
The Principal of the canister to upgrade.
sender?
Section titled “sender?”
optionalsender:Principal
Defined in: pocket-ic-types.ts:666
The Principal to send the request as. Defaults to the anonymous principal.
wasm:
string|ArrayBufferLike
Defined in: pocket-ic-types.ts:655
The WASM module to install to the canister.
If a string is passed, it is treated as a path to a file.
If an ArrayBufferLike is passed, it is treated as the WASM module itself.