Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

fromWei and toWei accept int as units #7053

Closed

Description

@luu-alex

came in internally:
background, i have backed that return token name, value, and decimal
Want to transform value to a value represented with decimal point
So issue is when i want to use fromWei it requires unit but unit is string (as a key from ethUnitMap) but i have digit representative (18 will be ether)
What is the best approach to usage for fromWei when i only have decimal point?

Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. [First step]
  2. [Second step]
  3. [and so on...]

Logs

Environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions