Skip to content

fix: apply CEI ordering to license purchases#571

Open
sirakinb wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
sirakinb:codex/fix-marketplace-purchase-cei
Open

fix: apply CEI ordering to license purchases#571
sirakinb wants to merge 1 commit into
ThinkLikeAFounder:mainfrom
sirakinb:codex/fix-marketplace-purchase-cei

Conversation

@sirakinb
Copy link
Copy Markdown

Summary

  • persist the license record and listing sale/status updates before payment transfers in purchase_license
  • keep creator and platform-fee transfers after storage effects are committed
  • expand purchase coverage to assert sale count and buyer/creator balances

Tests

  • cargo fmt -p pulsar-creative-marketplace --check
  • cargo +1.91.1 test -p pulsar-creative-marketplace

Refs #555

@sirakinb sirakinb force-pushed the codex/fix-marketplace-purchase-cei branch from 96eeec6 to a5c79fa Compare May 28, 2026 02:33
@sirakinb
Copy link
Copy Markdown
Author

Rebased this branch onto current main and kept the license/listing effects before payment transfers.

Verification after rebase:

  • cargo +1.91.1 fmt -p pulsar-creative-marketplace --check
  • git diff --check
  • cargo +1.91.1 test -p pulsar-creative-marketplace (13 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.

2 participants