Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Update BN.js dependecy to v5.2.1 #5072

@gregorfelkar

Description

@gregorfelkar

This is not a Bug Report, Feature Request, or related to Documentation

  • I have searched the existing issues

Is there an existing issue for this?

  • I have searched the existing issues

What's up?

  • Fix serious issue in .toString(16)

The hex encoding of some numbers is wrong. Since the string representation
is also used for interoperability between BigInt libraries, this bug is
causing a number modification when a BN.js number is converted into
another BigInt class, for example the BigNumber of ethers.js.

indutny/bn.js@042ab62

Currently it will install:

│ └─┬ web3-utils@1.7.3
│   ├── bn.js@4.12.0

Examples/References

No response

Metadata

Metadata

Labels

1.x1.0 related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions