Skip to content

fix(orders): accept tokenId in eth_price validation#1884

Closed
vikions wants to merge 1 commit intoProjectOpenSea:mainfrom
vikions:fix/orders-eth-price-tokenid
Closed

fix(orders): accept tokenId in eth_price validation#1884
vikions wants to merge 1 commit intoProjectOpenSea:mainfrom
vikions:fix/orders-eth-price-tokenid

Conversation

@vikions
Copy link
Contributor

@vikions vikions commented Jan 30, 2026

Problem

The eth_price orderBy validation only checked for tokenIds (plural), but serializeOrdersQueryOptions also accepts tokenId (singular). This caused false validation errors when users passed the valid tokenId parameter.

Solution

Updated validation in getOrder and getOrders to accept either tokenIds or tokenId.

Changes

  • Updated validation logic to check both parameters
  • Updated error messages to mention both options

@ryanio
Copy link
Collaborator

ryanio commented Feb 11, 2026

Thanks for catching this bug! We've incorporated your fix with added unit tests and error message cleanup in #1897. Closing this in favor of that PR.

@ryanio ryanio closed this Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants