Skip to content

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

Merged
ryanio merged 2 commits intomainfrom
fix/eth-price-tokenid-cleanup
Feb 11, 2026
Merged

fix(orders): accept tokenId in eth_price validation#1897
ryanio merged 2 commits intomainfrom
fix/eth-price-tokenid-cleanup

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Feb 11, 2026

Summary

Follow-up to #1884 — incorporates the bug fix and adds tests + cleanup:

  • Fix: orderBy: "eth_price" validation now accepts tokenId (singular) in addition to tokenIds (plural), matching serializeOrdersQueryOptions behavior
  • Add 8 unit tests covering the eth_price validation for both getOrder and getOrders
  • Use consistent camelCase SDK param names in error messages instead of mixing snake_case API params

Closes #1884

Test plan

  • All 8 new validation tests pass
  • Lint passes
  • Type check passes

🤖 Generated with Claude Code

vikions and others added 2 commits January 30, 2026 15:00
…dation

- Add unit tests for eth_price validation in getOrder and getOrders
- Test both tokenId (singular) and tokenIds (plural) paths
- Use consistent camelCase SDK param names in error messages

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@ryanio ryanio merged commit 03f9d08 into main Feb 11, 2026
8 checks passed
@ryanio ryanio deleted the fix/eth-price-tokenid-cleanup branch February 11, 2026 23:59
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