• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ProjectOpenSea / opensea-js / 18507239892
88%
master: 30%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 14 Oct 2025 07:05PM UTC
Jobs 1
Files 26
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2025 07:05PM UTC coverage: 48.864% (-0.07%) from 48.929%
18507239892

push

github

web-flow
fix: correct price type for Listing API responses (#1770)

* fix: correct price type for Listing API responses

Fixes #1749 and #1682

The OpenSea API returns different price structures for listings vs offers:
- Listings have: `price: { current: { currency, decimals, value } }`
- Offers have: `price: { currency, decimals, value }`

This change updates the Listing type to correctly reflect the actual API
response structure with the nested `current` property, while keeping the
Offer type as is.

Changes:
- Updated Listing type to have `price: { current: Price }` instead of `price: Price`
- Fixed type checking in SDK fulfillOrder to handle the type field properly
- Verified fix against actual API responses from getBestListings and getAllListings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add tests for Listing price structure with nested current property

- Verify getAllListings returns listings with price.current structure
- Verify getBestListing returns listing with price.current structure
- Tests confirm fix for issue #1749 and #1682

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>

109 of 389 branches covered (28.02%)

Branch coverage included in aggregate %.

622 of 1107 relevant lines covered (56.19%)

2.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18507239892.1 14 Oct 2025 07:05PM UTC 26
48.86
GitHub Action Run
Source Files on build 18507239892
  • Tree
  • List 26
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b6d47fe1 on github
  • Prev Build on main (#18506648750)
  • Next Build on main (#18507247130)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc