Skip to content

Wallet-cli commands and rpc calls return incorrect decimal amount for tokens with non-default number of decimals. #1822

@ImplOfAnImpl

Description

@ImplOfAnImpl

E.g. if I have a token with 6 decimals and a utxo with 100 tokens of that kind, account-utxos would print something like "amount":{"atoms":"100000000","decimal":"0.001"}. I.e. the amount of atoms would be correct, but the decimal amount would be calculated using the default number of decimals.
Same happens for standalone-multisig-utxos.
Rpc calls, like get_multisig_utxos, also have this issue.

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