Skip to content

Commit c169c35

Browse files
authored
fix getting extraData in order fulfillment (#1154)
1 parent 0696f6a commit c169c35

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/sdk.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,9 @@ export class OpenSeaSDK {
718718

719719
// If the order is using offer protection, the extraData
720720
// must be included with the order to successfully fulfill.
721-
const fulfillmentOrder =
722-
result.fulfillment_data.transaction.input_data.orders[0];
723-
if ("extraData" in fulfillmentOrder) {
724-
extraData = (fulfillmentOrder as AdvancedOrder).extraData;
721+
const inputData = result.fulfillment_data.transaction.input_data;
722+
if ("orders" in inputData && "extraData" in inputData.orders[0]) {
723+
extraData = (inputData.orders[0] as AdvancedOrder).extraData;
725724
}
726725

727726
const signature = result.fulfillment_data.orders[0].signature;

0 commit comments

Comments
 (0)