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

feat: enhance toNano and fromNano functions to support customizable decimal precision #62

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

Conversation

Ho3einWave
Copy link

This pull request includes changes to the src/utils/convert.ts and src/utils/convert.spec.ts files to add support for custom decimal places in the toNano and fromNano functions. Additionally, it includes minor code style adjustments.

Support for custom decimals:

  • src/utils/convert.ts: Modified toNano and fromNano functions to accept an optional decimals parameter, allowing conversion with custom decimal places. [1] [2] [3]
  • src/utils/convert.spec.ts: Added test cases to verify the functionality of toNano and fromNano with custom decimal places.

Code style adjustments:

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