Skip to content

Commit

Permalink
support for collection with 0% Opensea fee (#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
1220moritz authored Aug 2, 2024
1 parent 1df6e85 commit 9e18c7b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,12 @@ export class OpenSeaSDK {
if (seller) {
considerationItems.push(getConsiderationItem(sellerBasisPoints, seller));
}
for (const fee of collectionFees) {
considerationItems.push(
getConsiderationItem(basisPointsForFee(fee), fee.recipient),
);
if (collectionFeesBasisPoints > 0) {
for (const fee of collectionFees) {
considerationItems.push(
getConsiderationItem(basisPointsForFee(fee), fee.recipient),
);
}
}
return considerationItems;
}
Expand Down

0 comments on commit 9e18c7b

Please sign in to comment.