InstallCodeOptions
Defined in: pocket-ic-types.ts:578
Options for installing a WASM module to a given canister.
Properties
Section titled “Properties”
optional
arg:ArrayBufferLike
Defined in: pocket-ic-types.ts:595
Candid encoded argument to pass to the canister’s init function. Defaults to an empty ArrayBuffer.
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: pocket-ic-types.ts:582
The Principal of the canister to install the code to.
sender?
Section titled “sender?”
optional
sender:Principal
Defined in: pocket-ic-types.ts:601
The principal to install the code as. Defaults to the anonymous principal.
targetSubnetId?
Section titled “targetSubnetId?”
optional
targetSubnetId:Principal
Defined in: pocket-ic-types.ts:606
The ID of the subnet that the canister resides on.
wasm:
string
|ArrayBufferLike
Defined in: pocket-ic-types.ts:589
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.