fn install_in_mode(
        &self,
        canister_id: CanisterId,
        mode: CanisterInstallMode,
        wat: &str,
        payload: Vec<u8>,
    ) {
        self.execute_ingress(
            ic00::IC_00,
            Method::InstallCode,
            InstallCodeArgs::new(
                mode,
                canister_id,
                wabt::wat2wasm(wat).expect("invalid WAT"),
                payload,
                None,
                None,
                None,
            )
            .encode(),
        )
        .expect("failed to install canister code");
    }
/// Compiles specified WAT to Wasm and installs it for the canister using
/// the specified ID in the provided install mode.
Compiles specified WAT to Wasm and installs it for the canister using
the specified ID in the provided install mode.
Compiles specified WAT to Wasm and installs it for the canister using the specified ID in the provided install mode .
fn install_in_mode(
        &self,
        canister_id: CanisterId,
        mode: CanisterInstallMode,
        wat: &str,
        payload: Vec<u8>,
    ) {
        self.execute_ingress(
            ic00::IC_00,
            Method::InstallCode,
            InstallCodeArgs::new(
                mode,
                canister_id,
                wabt::wat2wasm(wat).expect("invalid WAT"),
                payload,
                None,
                None,
                None,
            )
            .encode(),
        )
        .expect("failed to install canister code");
    }
fn install_in_mode ( & self , canister_id : CanisterId , mode : CanisterInstallMode , wat : & str , payload : Vec < u8 > , ) { self . execute_ingress ( ic00 :: IC_00 , Method :: InstallCode , InstallCodeArgs :: new ( mode , canister_id , wabt :: wat2wasm ( wat ) . expect ( " " ) , payload , None , None , None , ) . encode ( ) , ) . expect ( " " ) ; }
Compiles specified WAT to Wasm and installs it for the canister using
the specified ID in the provided install mode.
Compiles specified WAT to Wasm and installs it for the canister using the specified ID in the provided install mode .
&self
canister_id
CanisterId
mode
CanisterInstallMode
wat
&str
payload
Vec<u8>
&self
canister_id
CanisterId
mode
CanisterInstallMode
wat
&str
payload
Vec<u8>