js-libs icon indicating copy to clipboard operation
js-libs copied to clipboard

Block with non-BigNumber `number` field makes distinctValues throw

Open axelchalon opened this issue 6 years ago • 0 comments
trafficstars

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

axelchalon avatar Dec 19 '18 16:12 axelchalon