pub fn prepare_update<S: ToString>(
        &self,
        canister_id: &CanisterId,
        method: S,
        arguments: Vec<u8>,
        nonce: Vec<u8>,
    ) -> Result<(Vec<u8>, MessageId), Box<dyn Error>> {
        let (submit_request, request_id) = self.prepare_update_raw(
            canister_id,
            method,
            arguments,
            nonce,
            current_time_and_expiry_time().1,
        )?;
        let http_body = SignedRequestBytes::try_from(submit_request)?;
        Ok((http_body.into(), request_id))
    }
/// Prepares and serailizes a CBOR update request.
Prepares and serailizes a CBOR update request.
Prepares and serailizes a CBOR update request .
pub fn prepare_update<S: ToString>(
        &self,
        canister_id: &CanisterId,
        method: S,
        arguments: Vec<u8>,
        nonce: Vec<u8>,
    ) -> Result<(Vec<u8>, MessageId), Box<dyn Error>> {
        let (submit_request, request_id) = self.prepare_update_raw(
            canister_id,
            method,
            arguments,
            nonce,
            current_time_and_expiry_time().1,
        )?;
        let http_body = SignedRequestBytes::try_from(submit_request)?;
        Ok((http_body.into(), request_id))
    }
pub fn prepare_update < S : ToString > ( & self , canister_id : & CanisterId , method : S , arguments : Vec < u8 > , nonce : Vec < u8 > , ) -> Result < ( Vec < u8 > , MessageId ) , Box < dyn Error > > { let ( submit_request , request_id ) = self . prepare_update_raw ( canister_id , method , arguments , nonce , current_time_and_expiry_time ( ) . 1 , ) ? ; let http_body = SignedRequestBytes :: try_from ( submit_request ) ? ; Ok ( ( http_body . into ( ) , request_id ) ) }
Prepares and serailizes a CBOR update request.
Prepares and serailizes a CBOR update request .
&self
canister_id
&CanisterId
method
S
arguments
Vec<u8>
nonce
Vec<u8>
&self
canister_id
&CanisterId
method
S
arguments
Vec<u8>
nonce
Vec<u8>