-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(toBigInt): refactor function and improve tests (#197)
* refactor(utils): toBigInt function use Math.pow instead of a for loop * test(utils): improve toBigInt and fromBigInt tests and use toStrictEqual instead of toBe * fix(utils): refactor toBigInt function to handle decimal precision correctly * adding a property-based test to check fromBigInt & toBigInt * Use BigInt for numbers * Support BigInt uint8Array conversion functions * Rename toBigInt/fromBigInt -> parseBigInt/formatBigInt * fix typed encoding * Fix transaction builder * Fix rawJSON incompatability with Firefox using Integer instead of BigInt --------- Co-authored-by: bchamagne <[email protected]> Co-authored-by: Samuel Manzanera <[email protected]>
- Loading branch information
1 parent
09d31d1
commit e751517
Showing
23 changed files
with
940 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.