Skip to content

Allow TokenID to not be an integer when querying through graphql #88

@webel

Description

@webel

Hi,

If I'm reading the sdk right this is just an issue when directly querying the graph, here's a reproducible query with an otherwise valid tokenID;

query TokenEvents {
  token(token: {address: "0xc729Ce9bF1030fbb639849a96fA8BBD013680B64", tokenId: "0xceef2e284c65b5111ce7533bb10e97a1f3f8b7caa0033c994b55a00e302d1643"}) {
    events(sort: {sortKey: CREATED, sortDirection: ASC}) {
      eventType
      transactionInfo {
        blockTimestamp
        transactionHash
      }
    }
  }
}

Throws error:

1 validation error for TokenInputModel
token_id
Token id: 0xceef2e284c65b5111ce7533bb10e97a1f3f8b7caa0033c994b55a00e302d1643 is not a valid integer. (type=value_error)

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