Skip to content

P2 filesystem: TypeError: Cannot convert a BigInt value to a number #1174

@inter-besan44

Description

@inter-besan44

Hi! I'm getting the following error in the browser implementation of Descriptor.read:

TypeError: Cannot convert a BigInt value to a number
    at Uint8Array.slice (<anonymous>)
    at Descriptor.read (filesystem.js:184:1)

According to the TS interface of Descriptor, it seems the write function should take BigInts. However, they are then passed to Uint8Array.slice which from my understanding expects Numbers.

I might be mistaken, but I expect there should be a conversion happening here?

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