Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fromWei() parsing of large numbers > 10^20 (#6882)
* Fix scientific notation parsing for large numbers with BigInt Prevent automatic conversion to scientific notation for numbers >= 10^21 by using BigInt, ensuring accurate string representations and avoiding parsing errors in fromWei function. * Update Tests for scientific notation number parsing. * refactor: minor code cleaning * docs: Update changelog for #6882 * Update CHANGELOG.md --------- Co-authored-by: Alex <alex.luu@mail.utoronto.ca> Co-authored-by: Alex <luu.alex98@gmail.com>
- Loading branch information
a83e9d5
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.
Benchmark
processingTx
9428
ops/sec (±3.62%
)9301
ops/sec (±4.81%
)0.99
processingContractDeploy
38723
ops/sec (±8.01%
)39129
ops/sec (±7.62%
)1.01
processingContractMethodSend
19502
ops/sec (±7.96%
)19443
ops/sec (±5.19%
)1.00
processingContractMethodCall
40304
ops/sec (±5.83%
)38971
ops/sec (±6.34%
)0.97
abiEncode
44499
ops/sec (±7.75%
)44252
ops/sec (±6.92%
)0.99
abiDecode
31377
ops/sec (±6.77%
)30419
ops/sec (±8.89%
)0.97
sign
1636
ops/sec (±0.62%
)1656
ops/sec (±4.08%
)1.01
verify
378
ops/sec (±0.43%
)373
ops/sec (±0.78%
)0.99
This comment was automatically generated by workflow using github-action-benchmark.