Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will committed Nov 28, 2023
1 parent e7c0c3f commit 4e83c29
Show file tree
Hide file tree
Showing 15 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion mvp/test/foundry/RoyaltyDistributor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "contracts/modules/royalties/RoyaltyNFT.sol";
import "contracts/interfaces/modules/royalties/ISplitMain.sol";
import "./mocks/MockSplitMain.sol";
import "./mocks/MockERC20.sol";
import "test/foundry/mocks/MockSplitMain.sol";
import "./mocks/MockSplitMain.sol";
import "contracts/modules/royalties/policies/MutableRoyaltyProportionPolicy.sol";
import "contracts/modules/royalties/RoyaltyNFTFactory.sol";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.13;

import "contracts/interfaces/modules/royalties/ISplitMain.sol";
import "test/foundry/mocks/MockSplit.sol";
import "./MockSplit.sol";
import "test/foundry/mocks/MockERC20.sol";

contract MockSplitMain is ISplitMain {
Expand Down
10 changes: 4 additions & 6 deletions test/foundry/e2e/e2e.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ contract E2ETest is BaseTest {
memory registerIpAssetParamsCharacter = Registration
.RegisterIPAssetParams({
owner: ipAssetOwner1,
ipOrgAssetType: 0,
name: "Character IPA",
ipAssetType: 0,
hash: 0x558b44f88e5959cec9c7836078a53ff4d6432142a9d5caa6f3a6eb7c83930000,
mediaUrl: "https://arweave.net/chracter"
});
Expand All @@ -236,8 +236,8 @@ contract E2ETest is BaseTest {
memory registerIpAssetParamsStory = Registration
.RegisterIPAssetParams({
owner: ipAssetOwner2,
ipOrgAssetType: 1,
name: "Story IPA",
ipAssetType: 1,
hash: 0x558b44f88e5959cec9c7836078a53ff4d6432142a9d5caa6f3a6eb7c83931111,
mediaUrl: "https://arweave.net/story"
});
Expand All @@ -260,8 +260,8 @@ contract E2ETest is BaseTest {
memory registerIpAssetParamsOrg2 = Registration
.RegisterIPAssetParams({
owner: ipAssetOwner3,
ipOrgAssetType: 1,
name: "Story IPA Org2",
ipAssetType: 1,
hash: 0x558b44f88e5959cec9c7836078a53ff4d6432142a9d5caa6f3a6eb7c83933333,
mediaUrl: "https://arweave.net/story2"
});
Expand All @@ -282,10 +282,8 @@ contract E2ETest is BaseTest {
relType: "APPEAR_IN",
srcAddress: ipOrg1,
srcId: 1,
srcType: 0,
dstAddress: ipOrg1,
dstId: 2,
dstType: 0
dstId: 2
});
bytes[] memory preHooksDataRel = new bytes[](0);
bytes[] memory postHooksDataRel = new bytes[](0);
Expand Down
2 changes: 0 additions & 2 deletions test/foundry/utils/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import "contracts/IPAssetRegistry.sol";
import "contracts/lib/modules/Registration.sol";
import "contracts/access-control/AccessControlSingleton.sol";
import "contracts/IPAssetRegistry.sol";
import "contracts/interfaces/modules/collect/ICollectModule.sol";
import "contracts/modules/relationships/RelationshipModule.sol";
import "contracts/modules/licensing/LicenseRegistry.sol";
import "contracts/modules/licensing/LicensingModule.sol";
Expand All @@ -29,7 +28,6 @@ contract BaseTest is BaseTestUtils, ProxyHelper, AccessControlHelper {
IPOrg public ipOrg;
IPOrgController public ipOrgController;
ModuleRegistry public moduleRegistry;
ICollectModule public collectModule;
RelationshipModule public relationshipModule;
IPAssetRegistry public registry;
StoryProtocol public spg;
Expand Down

0 comments on commit 4e83c29

Please sign in to comment.