Skip to content

Commit

Permalink
lift restriction on payerIpId
Browse files Browse the repository at this point in the history
  • Loading branch information
Spablob authored and Ramarti committed Apr 15, 2024
1 parent 3ec7287 commit fb1291b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions contracts/modules/royalty/RoyaltyModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ contract RoyaltyModule is
if (!$.isWhitelistedRoyaltyPolicy[payerRoyaltyPolicy])
revert Errors.RoyaltyModule__NotWhitelistedRoyaltyPolicy();

ILicenseRegistry licenseRegistry = LICENSE_REGISTRY;
if (licenseRegistry.isExpiredNow(receiverIpId) || licenseRegistry.isExpiredNow(payerIpId))
revert Errors.RoyaltyModule__IpIsExpired();
if (LICENSE_REGISTRY.isExpiredNow(receiverIpId)) revert Errors.RoyaltyModule__IpIsExpired();

IRoyaltyPolicy(payerRoyaltyPolicy).onRoyaltyPayment(msg.sender, receiverIpId, token, amount);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ contract e2e is Test {
)
);


impl = address(new RoyaltyModule(address(disputeModule), address(licenseRegistry)));
royaltyModule = RoyaltyModule(
TestProxyHelper.deployUUPSProxy(
Expand All @@ -136,7 +135,7 @@ contract e2e is Test {
)
);
vm.label(address(royaltyModule), "RoyaltyModule");

impl = address(
new LicensingModule(
address(accessController),
Expand Down

0 comments on commit fb1291b

Please sign in to comment.