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

Added support for custom unit decimals providing #244

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

asimaranov
Copy link

@asimaranov asimaranov commented Jun 27, 2023

What was wrong?

It's useful to be able to provide the custom unit decimals like from_wei(123456789, 6). This is common practice in typescript API and handy when operating with token with decimals amount e.g. 6 is fetched from blockchain

Related to Issue # web3/web3.js#3169 for web3.js library

How was it fixed?

Added support for number passing to from_wei, to_wei that is interpreted as decimals number.

Todo:

  • Add or update documentation related to these changes

  • Add entry to the release notes

Cute Animal Picture

telegram-cloud-document-4-5983241381538172152.2.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant