Skip to content

What's the need for a custom BN wrapper? #312

Closed
@LogvinovLeon

Description

@LogvinovLeon

Why does ethers.js use a custom-written bn.js wrapper?
I know some tools in the community use BigNumber and some others use bn.js, but taking bn.js wrapping it in a restrictive way, converting it back and force on every operation between bn and hex forms and calling it BigNumber to have colliding names with an existing and popular library seems like a strange decision to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionQuestions, feedback and general information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions