Skip to content

node send assumes 18 decimals #795

@haloooloolo

Description

@haloooloolo

The node send command does not fetch the number of decimals from the contract when transferring ERC20 tokens and uses the default utility function for ETH to convert from float to wei. This works fine for RPL and many other tokens, but e.g. 1 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, i.e. an intended transfer of 1 USDC is incorrectly converted to 1,000,000,000,000 USDC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions