-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigNumber.toString breaking change not in V5 migration guide #1164
Comments
The base was always ignored, and it is somewhat dangerous to include it (since another developer may believe it follows the BN.js convention), but you are correct it did not throw. I will add a note to the migration docs. :) |
I actually think, since I already do the check in Thoughts? |
This has been addressed in 5.0.22. It will now log a warning the first time Try it out and let me know how it works for you. Thanks! :) |
Closing this now. If you have any further issues, please re-open. :) |
This references Why doesn't BigNumber.toString allow an arbitrary base? #889
I'm getting the same error after upgrading to Ethers V5 from V4 because I had places that call
.toString(10)
on results from Ethers. Read through the #889 thread, I guess it makes sense, but be aware it could confuse people, as toString(10) is the go-to function in the actual BigNumber library to print a really big number without exponential notation.Anyways, it is a breaking change, but it is not mentioned here https://docs.ethers.io/v5/migration/ethers-v4/#migration-v4--bignumber
The text was updated successfully, but these errors were encountered: