diff --git a/test/foundry/integration/flows/royalty/Royalty.t.sol b/test/foundry/integration/flows/royalty/Royalty.t.sol index c3cf4a632..93b229fac 100644 --- a/test/foundry/integration/flows/royalty/Royalty.t.sol +++ b/test/foundry/integration/flows/royalty/Royalty.t.sol @@ -163,8 +163,8 @@ contract Flows_Integration_Disputes is BaseIntegration { address[] memory accounts = new address[](2); // If you face InvalidSplit__AccountsOutOfOrder, shuffle the order of accounts (swap index 0 and 1) - accounts[0] = ipAcct[3]; - accounts[1] = ipAcct3_ancestorVault; + accounts[1] = ipAcct[3]; + accounts[0] = ipAcct3_ancestorVault; royaltyPolicyLAP.distributeIpPoolFunds(ipAcct[3], address(mockToken), accounts, address(u.dan)); diff --git a/test/foundry/registries/IPAssetRegistry.t.sol b/test/foundry/registries/IPAssetRegistry.t.sol index 85e1e8154..0cf01ee28 100644 --- a/test/foundry/registries/IPAssetRegistry.t.sol +++ b/test/foundry/registries/IPAssetRegistry.t.sol @@ -150,6 +150,14 @@ contract IPAssetRegistryTest is BaseTest { registry.register(address(erc721WithoutMetadata), 999); } + function test_IPAssetRegistry_not_registered() public { + assertTrue(!registry.isRegistered(address(0))); + assertTrue(!registry.isRegistered(address(0x12345))); + assertTrue(!registry.isRegistered(address(this))); + mockNFT.mintId(alice, 1000); + assertTrue(!registry.isRegistered(ipAssetRegistry.registerIpAccount(block.chainid, address(mockNFT), 1000))); + } + /// @notice Helper function for generating an account address. function _getIPAccount(uint256 contractId) internal view returns (address) { return