diff --git a/packages/asset/test/AssetRoyalty.test.ts b/packages/asset/test/AssetRoyalty.test.ts index 39989a908b..d4b4d38577 100644 --- a/packages/asset/test/AssetRoyalty.test.ts +++ b/packages/asset/test/AssetRoyalty.test.ts @@ -828,37 +828,6 @@ describe('Asset Royalties', function () { }); }); - it('Can view all the royalty recipient of each asset', async function () { - const { - Asset, - seller, - commonRoyaltyReceiver, - creator, - deployer, - assetAsMinter, - } = await assetRoyaltyDistribution(); - - const id = generateAssetId(creator.address, 1); - await assetAsMinter.mint(seller.address, id, 1, '0x'); - const id2 = generateAssetId(deployer.address, 1); - await assetAsMinter.mint(seller.address, id2, 1, '0x01'); - const tokenRoyalties = await Asset.getTokenRoyalties(); - expect(tokenRoyalties[0].tokenId).to.be.equal(id); - expect(tokenRoyalties[0].recipients[0].recipient).to.be.equal( - creator.address - ); - expect(tokenRoyalties[0].recipients[1].recipient).to.be.equal( - commonRoyaltyReceiver.address - ); - expect(tokenRoyalties[1].tokenId).to.be.equal(id2); - expect(tokenRoyalties[1].recipients[0].recipient).to.be.equal( - deployer.address - ); - expect(tokenRoyalties[1].recipients[1].recipient).to.be.equal( - commonRoyaltyReceiver.address - ); - }); - describe('Roles on Asset and Manager contract', function () { it('creator could change the recipient for his splitter', async function () { const {seller, RoyaltyManagerContract, creator, assetAsMinter} = diff --git a/packages/asset/test/utils/interfaceIds.ts b/packages/asset/test/utils/interfaceIds.ts index 79bd50143a..2ecf7170aa 100644 --- a/packages/asset/test/utils/interfaceIds.ts +++ b/packages/asset/test/utils/interfaceIds.ts @@ -4,5 +4,5 @@ export const ERC1155MetadataURIInterfaceId = '0x0e89341c'; export const AccessControlInterfaceId = '0x7965db0b'; export const ERC2981InterfaceId = '0x2a55205a'; export const RoyaltyUGCInterfaceId = '0xa30b4db9'; -export const RoyaltyMultiDistributorInterfaceId = '0x667873ce'; +export const RoyaltyMultiDistributorInterfaceId = '0xf1e82fd0'; export const RoyaltyMultiRecipientsInterfaceId = '0xfd90e897'; diff --git a/packages/dependency-royalty-management/test/RoyaltyDistribution.test.ts b/packages/dependency-royalty-management/test/RoyaltyDistribution.test.ts index 513c07c0d5..3840301ba6 100644 --- a/packages/dependency-royalty-management/test/RoyaltyDistribution.test.ts +++ b/packages/dependency-royalty-management/test/RoyaltyDistribution.test.ts @@ -1814,26 +1814,6 @@ describe('Royalty', function () { ); } }); - it('should return contract royalty BPS when getTokenRoyalties is called', async function () { - const { - seller, - ERC1155, - deployer, - royaltyReceiver, - RoyaltyManagerContract, - } = await royaltyDistribution(); - await ERC1155.connect(deployer).mint( - seller.address, - 1, - 1, - royaltyReceiver.address, - '0x' - ); - const tokenRoyalties = await ERC1155.getTokenRoyalties(); - expect(tokenRoyalties[0].royaltyBPS).to.be.equal( - await RoyaltyManagerContract.getContractRoyalty(ERC1155.address) - ); - }); }); describe('Input validation', function () { @@ -2223,16 +2203,5 @@ describe('Royalty', function () { commonRoyaltyReceiver.address ); }); - it('should return the tokens for which the royalties is set', async function () { - const {ERC1155, seller, royaltyReceiver} = await royaltyDistribution(); - await ERC1155.connect(seller).mint( - seller.address, - 1, - 1, - royaltyReceiver.address, - '0x' - ); - expect((await ERC1155.getTokenRoyalties()).length).to.be.equals(1); - }); }); });