Skip to content

fix: handle tips when unitsToFill is not provided#815

Merged
ryanio merged 1 commit intoProjectOpenSea:mainfrom
kinderjoypresents:fix/standard-fulfill-tips-units-to-fill
Jan 13, 2026
Merged

fix: handle tips when unitsToFill is not provided#815
ryanio merged 1 commit intoProjectOpenSea:mainfrom
kinderjoypresents:fix/standard-fulfill-tips-units-to-fill

Conversation

@kinderjoypresents
Copy link
Contributor

Motivation

When tips are provided and unitsToFill is not set (defaults to 0), fulfillStandardOrder called mapTipAmountsFromUnitsToFill and could throw.

Solution

This change adjusts tips using:

  • mapTipAmountsFromUnitsToFill when unitsToFill is provided
  • mapTipAmountsFromFilledStatus otherwise

@ryanio
Copy link
Collaborator

ryanio commented Jan 13, 2026

thanks!

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 98.67%. Comparing base (f618d19) to head (ad91464).
⚠️ Report is 253 commits behind head on main.

Files with missing lines Patch % Lines
src/utils/fulfill.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #815      +/-   ##
==========================================
+ Coverage   98.27%   98.67%   +0.39%     
==========================================
  Files          35       35              
  Lines       14526    15653    +1127     
  Branches      660      686      +26     
==========================================
+ Hits        14276    15445    +1169     
+ Misses        245      203      -42     
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ryanio ryanio merged commit c57721f into ProjectOpenSea:main Jan 13, 2026
4 of 5 checks passed
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.

3 participants