Skip to content

BigInt(new Amount(bigint)) roundtrip. #45

@acutmore

Description

@acutmore

BigInt(value) currently calls value[Symbol.toPrimitive]("number").

If that remains it means an amount created from a bigint could lose data if it was passed to BigInt.

Ideas:

  • This is OK
  • Throw if BigInt() is passed an amount
  • Get a bigint similar to Amount.prototype.toBigInt()

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