Skip to content

[BUG] Amount in ERC-20 transfers interpreted as CSPR currency #743

Open
@ghost

Description

TL;DR

For contract's argument named amount value is always interpreted as CSRP - this is really confusing for ERC-20 calls.

Problem description

I got asked why calling ERC-20's transfer is displaying wrong amount:

image

So I located that part in UI, and it appears DeployValue is using isKeyOfCurrencyValue() to determine if CSPR price is used:

image

image

I think argument should not be interpreted basing solely on its name.

Required information

  • Casper Wallet Version: 1.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions