Skip to content

Type mismatch in XTC mint function Result #58

Description

@tarek-eg

Hello,
There's a mismatch in theTxReceipt of the mint function between the candid and the rust implementation
In Rust it's Nat and in candid it's Nat64

candid

type MintResult = variant {
    Ok : TransactionId;
    Err: MintError;
};
type TransactionId = nat64;

type TransactionId = nat64;

Rust implementation

pub type TxReceipt = Result<Nat, TxError>;

pub async fn mint(to: Principal, _amount: Nat) -> TxReceipt {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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