Skip to content

Why is the type of tokenId set as number? What is the reason behind the size limitation in the isTokenId function? #29

@Stpmyclique

Description

@Stpmyclique

Hi Team,

We have found that the current released code version is not compatible with long tokenId values, such as those used in ENS (Ethereum Name Service). The code treats tokenId as a number type, which seems incorrect in a JavaScript environment.

There is also a configuration option called MAX_TOKEN_ID in the code. Does the current version limit the use of long IDs?

We are currently unsure of the reasoning behind this design decision, but are there any plans to consider compatibility in the future, such as changing the tokenId type to string?

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