Skip to content

Type mismatch in XTC mint function Result #58

@tarek-eg

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 {

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