Skip to content

BigNumber.toString breaking change not in V5 migration guide #1164

Closed
@matYang

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement.fixed/completeThis Bug is fixed or Enhancement is complete and published.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions