ReinstallCodeOptions
Defined in: pocket-ic-types.ts:616
Options for reinstalling a WASM module to a given canister. This will reset both the canister’s heap and its stable memory.
Properties
Section titled “Properties”
optional
arg:ArrayBufferLike
Defined in: pocket-ic-types.ts:632
Candid encoded argument to pass to the canister’s init function.
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: pocket-ic-types.ts:620
The Principal of the canister to reinstall code to.
sender?
Section titled “sender?”
optional
sender:Principal
Defined in: pocket-ic-types.ts:638
The Principal to send the request as. Defaults to the anonymous principal.
wasm:
string
|ArrayBufferLike
Defined in: pocket-ic-types.ts:627
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.