Skip to content

BN.js vs BigNumber.js in Truffle target #211

@superduck35

Description

@superduck35

What

The typings in the output typings use BigNumber.js but an assertion in our test cases comparing the output against an equivalent bignumber.js is failing. Converting the test data to BN.js causes the test to pass. Not sure how it's slipping through, but maybe its worth being explicit in using BN.js.

Based on this article, seems like Truffle migrated from bignumber.js to BN.js in v5 https://medium.com/coinmonks/upgrading-to-truffle-5-22aedc7c2a4d

Happy to help if you can point me in the right direction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions