Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
This repository was archived by the owner on May 24, 2022. It is now read-only.

Block with non-BigNumber number field makes distinctValues throw #76

Description

@axelchalon

eth_newHeads (I think) returns a Block with the number field being a string (e.g. "0x..."); distinctValues assumes that the number field is a BigNumber: https://github.com/paritytech/js-libs/blob/master/packages/light.js/src/utils/operators/distinctValues.ts#L26 and as such we get x.number.eq is not a function

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions