pub fn sign_ingress_with_request_status_query(
    pem: &str,
    canister_id: Principal,
    method_name: &str,
    args: Vec<u8>,
) -> AnyhowResult<IngressWithRequestId> {
    let msg_with_req_id = sign(pem, canister_id, method_name, args)?;
    let request_id = msg_with_req_id
        .request_id
        .expect("No request id for transfer call found");
    let request_status = request_status_sign(pem, request_id, canister_id)?;
    let message = IngressWithRequestId {
        ingress: msg_with_req_id.message,
        request_status,
    };
    Ok(message)
}
/// Generates a bundle of signed messages (ingress + request status query).
Generates a bundle of signed messages (ingress + request status query).
Generates a bundle of signed messages ( ingress + request status query ) .
pub fn sign_ingress_with_request_status_query(
    pem: &str,
    canister_id: Principal,
    method_name: &str,
    args: Vec<u8>,
) -> AnyhowResult<IngressWithRequestId> {
    let msg_with_req_id = sign(pem, canister_id, method_name, args)?;
    let request_id = msg_with_req_id
        .request_id
        .expect("No request id for transfer call found");
    let request_status = request_status_sign(pem, request_id, canister_id)?;
    let message = IngressWithRequestId {
        ingress: msg_with_req_id.message,
        request_status,
    };
    Ok(message)
}
pub fn sign_ingress_with_request_status_query ( pem : & str , canister_id : Principal , method_name : & str , args : Vec < u8 > , ) -> AnyhowResult < IngressWithRequestId > { let msg_with_req_id = sign ( pem , canister_id , method_name , args ) ? ; let request_id = msg_with_req_id . request_id . expect ( " " ) ; let request_status = request_status_sign ( pem , request_id , canister_id ) ? ; let message = IngressWithRequestId { ingress : msg_with_req_id . message , request_status , } ; Ok ( message ) }
Generates a bundle of signed messages (ingress + request status query).
Generates a bundle of signed messages ( ingress + request status query ) .
pem
&str
canister_id
Principal
method_name
&str
args
Vec<u8>