Skip to content

fix(developerDocs): incorrect MatchOrders event payload in SDK events…#1941

Merged
ryanio merged 1 commit intoProjectOpenSea:mainfrom
jeffbrownn:jeffbrownn-MatchOrders
Mar 18, 2026
Merged

fix(developerDocs): incorrect MatchOrders event payload in SDK events…#1941
ryanio merged 1 commit intoProjectOpenSea:mainfrom
jeffbrownn:jeffbrownn-MatchOrders

Conversation

@jeffbrownn
Copy link
Contributor

Description

The MatchOrders event listener example in developerDocs/advanced-use-cases.md uses an incorrect payload structure.

Changes:

  • Updated handler signature:
  • ({ buy, sell, accountAddress })({ transactionHash, event })

Reason:

MatchOrders is dispatched through the internal _confirmTransaction method in sdk.ts, which emits transaction-related events using a unified payload:

{ transactionHash, event }

There is no dispatch in the SDK that provides buy, sell, or accountAddress fields for MatchOrders. The previous example could lead to undefined values and mislead developers.

… example

## Description

The `MatchOrders` event listener example in `developerDocs/advanced-use-cases.md` uses an incorrect payload structure.

### Changes:
- Updated handler signature:
- `({ buy, sell, accountAddress })` → `({ transactionHash, event })`

### Reason:
`MatchOrders` is dispatched through the internal `_confirmTransaction` method in `sdk.ts`, which emits transaction-related events using a unified payload:
```ts
{ transactionHash, event }
```

There is no dispatch in the SDK that provides `buy`, `sell`, or `accountAddress` fields for `MatchOrders`. The previous example could lead to undefined values and mislead developers.
Copy link
Collaborator

@ryanio ryanio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — _confirmTransaction emits { transactionHash, event }, not { buy, sell, accountAddress }. The doc example now matches the actual payload. LGTM!

@ryanio ryanio merged commit 3d27041 into ProjectOpenSea:main Mar 18, 2026
5 of 8 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.

2 participants