UpgradeCanisterOptions
Defined in: pocket-ic-types.ts:582
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”
optional
arg:ArrayBufferLike
Defined in: pocket-ic-types.ts:598
Candid encoded argument to pass to the canister’s init function.
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: pocket-ic-types.ts:586
The Principal of the canister to upgrade.
sender?
Section titled “sender?”
optional
sender:Principal
Defined in: pocket-ic-types.ts:604
The Principal to send the request as. Defaults to the anonymous principal.
wasm:
string
|ArrayBufferLike
Defined in: pocket-ic-types.ts:593
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.