Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spablob committed Apr 11, 2024
1 parent afad72a commit 3528985
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions test/foundry/modules/royalty/RoyaltyModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ contract TestRoyaltyModule is BaseTest {

address impl = address(new RoyaltyPolicyLAP(address(royaltyModule), address(licensingModule)));
royaltyPolicyLAP2 = RoyaltyPolicyLAP(
TestProxyHelper.deployUUPSProxy(impl, abi.encodeCall(RoyaltyPolicyLAP.initialize, address(protocolAccessManager)))
TestProxyHelper.deployUUPSProxy(
impl,
abi.encodeCall(RoyaltyPolicyLAP.initialize, address(protocolAccessManager))
)
);

arbitrationRelayer = u.relayer;
Expand Down Expand Up @@ -109,7 +112,10 @@ contract TestRoyaltyModule is BaseTest {
function test_RoyaltyModule_setDisputeModule_revert_ZeroDisputeModule() public {
address impl = address(new RoyaltyModule());
RoyaltyModule testRoyaltyModule = RoyaltyModule(
TestProxyHelper.deployUUPSProxy(impl, abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager)))
TestProxyHelper.deployUUPSProxy(
impl,
abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager))
)
);
vm.expectRevert(Errors.RoyaltyModule__ZeroDisputeModule.selector);
vm.prank(u.admin);
Expand All @@ -120,7 +126,10 @@ contract TestRoyaltyModule is BaseTest {
vm.startPrank(u.admin);
address impl = address(new RoyaltyModule());
RoyaltyModule testRoyaltyModule = RoyaltyModule(
TestProxyHelper.deployUUPSProxy(impl, abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager)))
TestProxyHelper.deployUUPSProxy(
impl,
abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager))
)
);
testRoyaltyModule.setDisputeModule(address(disputeModule));
assertEq(testRoyaltyModule.disputeModule(), address(disputeModule));
Expand All @@ -136,7 +145,10 @@ contract TestRoyaltyModule is BaseTest {
vm.startPrank(u.admin);
address impl = address(new RoyaltyModule());
RoyaltyModule testRoyaltyModule = RoyaltyModule(
TestProxyHelper.deployUUPSProxy(impl, abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager)))
TestProxyHelper.deployUUPSProxy(
impl,
abi.encodeCall(RoyaltyModule.initialize, address(protocolAccessManager))
)
);
testRoyaltyModule.setLicensingModule(address(licensingModule));
assertEq(testRoyaltyModule.licensingModule(), address(licensingModule));
Expand Down Expand Up @@ -427,4 +439,4 @@ contract TestRoyaltyModule is BaseTest {
assertEq(payerAddressUSDCBalBefore - payerAddressUSDCBalAfter, royaltyAmount);
assertEq(ipRoyaltyVaultUSDCBalAfter - ipRoyaltyVaultUSDCBalBefore, royaltyAmount);
}
}
}

0 comments on commit 3528985

Please sign in to comment.