Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

token-cli: Minting more than u64::MAX tokens leads to confusing behavior #1983

Open
@vkomenda

Description

Here are devnet transactions:

$ spl-token create-token --decimals 18
Creating token BZk67G7gcKquWXAgoTDoKqe78xwkSQiF4thsqYkHshJd
Signature: XioHUWB36xfCT97iPsQhugHnN39obq4UxPp9m7d5oc7fYfmcoa4DGs7wvbFsw1zijkXcr6LkHZ7yQLHr1befSVi

$ spl-token mint BZk67G7gcKquWXAgoTDoKqe78xwkSQiF4thsqYkHshJd 1000
Minting 1000 tokens

$ spl-token supply BZk67G7gcKquWXAgoTDoKqe78xwkSQiF4thsqYkHshJd
18.446744073709551615

Similar commands work fine with other tokens that have less decimal digits.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions