Closed
Description
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
Activity