Skip to content

Cosmos tx amount is casted to uint64 #164

@0x0ece

Description

@0x0ece

Hi, while Terra and Cosmos have relatively low amount of decimals, new chains are popping up with 18 decimals, e.g. XPLA.

We just noticed that there's an explicit cast to uint64:
https://github.com/renproject/multichain/blob/master/chain/cosmos/tx.go#L120

This causes overflow issue/incorrect amount on such chains.

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