Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsadface committed Oct 15, 2024
1 parent d635bdd commit 169f13d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion contracts/interfaces/story-nft/IStoryNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ interface IStoryNFT is IERC721, IERC7572 {
/// @notice Zero address provided as a param to StoryNFT constructor.
error StoryNFT__ZeroAddressParam();


////////////////////////////////////////////////////////////////////////////
// Structs //
////////////////////////////////////////////////////////////////////////////
Expand Down
6 changes: 4 additions & 2 deletions test/integration/workflows/RoyaltyIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ contract RoyaltyIntegration is BaseIntegration {
royaltyModule.maxPercent() + // 1000 * 10% = 100 royalty from childIpB
(((defaultMintingFeeA * defaultCommRevShareA) / royaltyModule.maxPercent()) * defaultCommRevShareA) /
royaltyModule.maxPercent() + // 1000 * 10% * 10% * 2 = 20 royalty from grandChildIp
defaultMintingFeeC + (defaultMintingFeeC * defaultCommRevShareC) /
defaultMintingFeeC +
(defaultMintingFeeC * defaultCommRevShareC) /
royaltyModule.maxPercent() // 500 from from minting fee of childIpC,500 * 20% = 100 royalty from childIpC
);
}
Expand Down Expand Up @@ -189,7 +190,8 @@ contract RoyaltyIntegration is BaseIntegration {
royaltyModule.maxPercent() + // 1000 * 10% = 100 royalty from childIpB
(((defaultMintingFeeA * defaultCommRevShareA) / royaltyModule.maxPercent()) * defaultCommRevShareA) /
royaltyModule.maxPercent() + // 1000 * 10% * 10% = 10 royalty from grandChildIp
defaultMintingFeeC + (defaultMintingFeeC * defaultCommRevShareC) /
defaultMintingFeeC +
(defaultMintingFeeC * defaultCommRevShareC) /
royaltyModule.maxPercent() // 500 from from minting fee of childIpC, 500 * 20% = 100 royalty from childIpC
);
}
Expand Down
7 changes: 1 addition & 6 deletions test/workflows/GroupingWorkflows.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,7 @@ contract GroupingWorkflowsTest is BaseTest {
snapshotIds[0] = 0;

vm.expectRevert(Errors.GroupingWorkflows__ZeroAddressParam.selector);
groupingWorkflows.collectRoyaltiesAndClaimReward(
groupId,
currencyTokens,
snapshotIds,
ipIds
);
groupingWorkflows.collectRoyaltiesAndClaimReward(groupId, currencyTokens, snapshotIds, ipIds);
}

// Multicall (mint → Register IP → Attach PIL terms → Add new IP to group IPA)
Expand Down

0 comments on commit 169f13d

Please sign in to comment.