ethjs-unit
ethjs-unit copied to clipboard
Fixed small numbers parsing
trafficstars
This PR fixes the issue https://github.com/ethjs/ethjs-unit/issues/6.
Released as: @ton.js/[email protected] for testing and a as quick fix.
Solution is pending. Current implementation has some flaws.
I've updated number parsing to use Intl for more reliable results, both toString and toFixed give incorrect results for some numbers.
Published as @ton.js/[email protected] for testing and as a hotfix.