Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromWei and toWei accept int as units #7053

Closed
luu-alex opened this issue May 21, 2024 · 0 comments
Closed

fromWei and toWei accept int as units #7053

luu-alex opened this issue May 21, 2024 · 0 comments
Assignees
Labels

Comments

@luu-alex
Copy link
Contributor

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

@luu-alex luu-alex self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant