Skip to content

Commit

Permalink
fix fulfillment (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
cterech authored Mar 9, 2023
1 parent ac61e81 commit 929c6ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,14 +1124,16 @@ export class OpenSeaSDK {
throw new Error("Unsupported protocol");
}

if (!order.clientSignature && order.orderHash) {
if (order.orderHash) {
const result = await this.api.generateFulfillmentData(
accountAddress,
order.orderHash,
order.protocolAddress,
order.side
);
order.clientSignature = result.fulfillment_data.orders[0].signature;
const signature = result.fulfillment_data.orders[0].signature;
order.clientSignature = signature;
order.protocolData.signature = signature;
}

const isPrivateListing = !!order.taker;
Expand Down

0 comments on commit 929c6ae

Please sign in to comment.