You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good to have a standard way to format Sui amounts with TypeScript SDK, like existing formatDigest() or formatAddress().
It's a very trivial operation and it's necessary for many projects, so it deserves to be standardised, in my opinion.
And, moreover, you already have it implemented here: formatAmount()
Look how even example projects now have to copy&paste the code. Not the best way because you cannot pull the latest bug fixes and updates automatically.
Proposed resolution
Move formatAmount() function from apps to TypeScript SDK utils.
The text was updated successfully, but these errors were encountered:
Problem/Motivation
It would be good to have a standard way to format Sui amounts with TypeScript SDK, like existing
formatDigest()
orformatAddress()
.It's a very trivial operation and it's necessary for many projects, so it deserves to be standardised, in my opinion.
And, moreover, you already have it implemented here: formatAmount()
Look how even example projects now have to copy&paste the code. Not the best way because you cannot pull the latest bug fixes and updates automatically.
Proposed resolution
Move formatAmount() function from apps to TypeScript SDK utils.
The text was updated successfully, but these errors were encountered: