Replies: 2 comments
-
I encountered this when migrating from |
Beta Was this translation helpful? Give feedback.
0 replies
-
This isn't a bug and was intentional in v5. It likely won't be changed in v5, but v6 will expand the range to the full mantissa width, relying on the next value (a non-zero-exponents) as the padding to ensure safety.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
There is an off-by-one error in
BigNumber.from
's number parsing. The code responsible for rejecting unsafe integers will also reject the maximum safe integer (and the minimum safe integer). The maximum safe integer is, by definition, safe.Reproduction steps
Beta Was this translation helpful? Give feedback.
All reactions