Skip to content

Fix incorrect OrderSide in createCollectionOffer price validation#1916

Merged
ryanio merged 1 commit intomainfrom
fix/collection-offer-orderside
Feb 25, 2026
Merged

Fix incorrect OrderSide in createCollectionOffer price validation#1916
ryanio merged 1 commit intomainfrom
fix/collection-offer-orderside

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Feb 25, 2026

Summary

  • createCollectionOffer was passing OrderSide.LISTING to getPriceParametersCallback instead of OrderSide.OFFER, bypassing the validation that prevents offers from using native ETH
  • This aligns it with createOffer and createBulkOffers which correctly pass OrderSide.OFFER
  • Adds a test to verify the correct OrderSide is passed

Built on top of #1913 by @Viktohblake — same fix without the unrelated package-lock.json changes.

Test plan

  • Existing tests pass (57 passing)
  • New test verifies OrderSide.OFFER is passed to price parameters callback

🤖 Generated with Claude Code

createCollectionOffer was passing OrderSide.LISTING to getPriceParametersCallback
instead of OrderSide.OFFER, bypassing the validation that prevents offers from
using native ETH. This aligns it with createOffer and createBulkOffers.

Based on #1913 by @Viktohblake.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@ryanio ryanio merged commit 145effc into main Feb 25, 2026
8 checks passed
@ryanio ryanio deleted the fix/collection-offer-orderside branch February 25, 2026 21:17
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.

1 participant