Skip to content

Commit a1f693a

Browse files
authored
Merge pull request #86 from storyprotocol/fix-pil-terms-commercial-use
fix: `derivativesAllowed` condition for determining `commercial_use` license
2 parents 8a146eb + 1600381 commit a1f693a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/storykit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@storyprotocol/storykit",
33
"author": "storyprotocol engineering <eng@storyprotocol.xyz>",
4-
"version": "0.2.2",
4+
"version": "0.2.3",
55
"type": "module",
66
"exports": {
77
".": {

packages/storykit/src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function getPilFlavorByLicenseTerms(pilTerms: PILTerms): PilFlavor {
3939
return derivativesAttribution ? PIL_FLAVOR.NON_COMMERCIAL_SOCIAL_REMIXING : PIL_FLAVOR.OPEN_USE
4040
}
4141

42-
if (commercialUse && derivativesAllowed && !derivativesAttribution && commercialRevenueShare === 0) {
42+
if (commercialUse && !derivativesAllowed && !derivativesAttribution && commercialRevenueShare === 0) {
4343
// TODO: commercial use should check that mintingFee is set, currently not received from the API
4444
return PIL_FLAVOR.COMMERCIAL_USE
4545
}

0 commit comments

Comments
 (0)