-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: update ark decimals to 18 and new helpers #114
refactor: update ark decimals to 18 and new helpers #114
Conversation
packages/helpers/source/index.ts
Outdated
@@ -13,10 +13,10 @@ export * from "./cast-array.js"; | |||
export * from "./censor.js"; | |||
export * from "./chars.js"; | |||
export * from "./chunk.js"; | |||
export * from "./clone.js"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here were made by my autoformatter on save 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aren't these obsolete now you don't include it anymore in the helper package? 🤔
….com/ArdentHQ/platform-sdk into refactor/update-decimals-and-helpers
….com/ArdentHQ/platform-sdk into refactor/update-decimals-and-helpers
@@ -0,0 +1,16 @@ | |||
import { formatUnits } from "./format-units"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the tests aren't configured yet for mainsail. Should I remove these files until then? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue is that the mainsail package is a copy of ark and not everything may work. I'll add a card though to enable tests based on the areas that are working so those run at least
[psdk] handle decimals (18) & [psdk] add formatter methods
Changes
1e8
to1e18
.formatUnits
andparseUnits
methods based on the ones created in PHP.