Skip to content

feature request: alternative withdrawal method by making arbitrary canister call #129

@ninegua

Description

@ninegua

It would be similar to wallet_call that is offered by cycle wallet at the moment.

type WalletResultCall = variant {
  Ok : record { return: blob };
  Err : text;
};

//Call Forwarding
  wallet_call: (record {
    canister: principal;
    method_name: text;
    args: blob;
    cycles: nat64;
  }) -> (WalletResultCall);
  wallet_call128: (record {
    canister: principal;
    method_name: text;
    args: blob;
    cycles: nat;
  }) -> (WalletResultCall);

This would enable users to make calls that require cycles. For example, an ICRC token canister may want its fees paid in cycles.

I know that there is a security concern of outstanding call contexts that could prevent ledger from being upgraded. But I still think this is worth discussing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions