pub fn new_from_send(
        send_args: &SendArgs,
        block_height: BlockHeight,
        to_canister: CanisterId,
        to_subaccount: Option<Subaccount>,
    ) -> Result<Self, String> {
        if AccountIdentifier::new(to_canister.get(), to_subaccount) != send_args.to {
            Err("Account identifier does not match canister args".to_string())
        } else {
            Ok(NotifyCanisterArgs {
                block_height,
                max_fee: send_args.fee,
                from_subaccount: send_args.from_subaccount,
                to_canister,
                to_subaccount,
            })
        }
    }
/// Construct a `notify` call to notify a canister about the
/// transaction created by a previous `send` call. `block_height`
/// is the index of the block returned by `send`.
Construct a `notify` call to notify a canister about the
transaction created by a previous `send` call. `block_height`
is the index of the block returned by `send`.
Construct a ` notify ` call to notify a canister about the transaction created by a previous ` send ` call . ` block_height ` is the index of the block returned by ` send ` .
pub fn new_from_send(
        send_args: &SendArgs,
        block_height: BlockHeight,
        to_canister: CanisterId,
        to_subaccount: Option<Subaccount>,
    ) -> Result<Self, String> {
        if AccountIdentifier::new(to_canister.get(), to_subaccount) != send_args.to {
            Err("Account identifier does not match canister args".to_string())
        } else {
            Ok(NotifyCanisterArgs {
                block_height,
                max_fee: send_args.fee,
                from_subaccount: send_args.from_subaccount,
                to_canister,
                to_subaccount,
            })
        }
    }
pub fn new_from_send ( send_args : & SendArgs , block_height : BlockHeight , to_canister : CanisterId , to_subaccount : Option < Subaccount > , ) -> Result < Self , String > { if AccountIdentifier :: new ( to_canister . get ( ) , to_subaccount ) != send_args . to { Err ( " " . to_string ( ) ) } else { Ok ( NotifyCanisterArgs { block_height , max_fee : send_args . fee , from_subaccount : send_args . from_subaccount , to_canister , to_subaccount , } ) } }
Construct a `notify` call to notify a canister about the
transaction created by a previous `send` call.
Construct a ` notify ` call to notify a canister about the transaction created by a previous ` send ` call .
send_args
&SendArgs
block_height
BlockHeight
to_canister
CanisterId
to_subaccount
Option<Subaccount>
send_args
&SendArgs
block_height
BlockHeight
to_canister
CanisterId
to_subaccount
Option<Subaccount>