diff --git a/packages/core-sdk/src/resources/ipAsset.ts b/packages/core-sdk/src/resources/ipAsset.ts index 9f8e7f1a..8037497e 100644 --- a/packages/core-sdk/src/resources/ipAsset.ts +++ b/packages/core-sdk/src/resources/ipAsset.ts @@ -1708,7 +1708,7 @@ export class IPAssetClient { * @emits IPRegistered (ipId, chainId, tokenContract, tokenId, name, uri, registrationDate) * @emits IpRoyaltyVaultDeployed (ipId, ipRoyaltyVault) */ - public async registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens( + public async registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens( request: RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensRequest, ): Promise { try { @@ -1811,7 +1811,7 @@ export class IPAssetClient { }); } return { - registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: txHash, + registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: txHash, distributeRoyaltyTokensTxHash, ipId, tokenId, diff --git a/packages/core-sdk/src/types/resources/ipAsset.ts b/packages/core-sdk/src/types/resources/ipAsset.ts index 81ef55b2..b1f82fe2 100644 --- a/packages/core-sdk/src/types/resources/ipAsset.ts +++ b/packages/core-sdk/src/types/resources/ipAsset.ts @@ -318,7 +318,7 @@ export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensReq } & IPMetadataInfo; export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse = { - registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: Address; + registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: Address; distributeRoyaltyTokensTxHash: Address; ipId: Address; tokenId: bigint; diff --git a/packages/core-sdk/test/integration/ipAsset.test.ts b/packages/core-sdk/test/integration/ipAsset.test.ts index f3dc2cdb..f0c06693 100644 --- a/packages/core-sdk/test/integration/ipAsset.test.ts +++ b/packages/core-sdk/test/integration/ipAsset.test.ts @@ -475,7 +475,7 @@ describe("IP Asset Functions ", () => { it("should not throw error when call register derivative and attach license terms and distribute royalty tokens", async () => { const tokenId = await getTokenId(); const result = - await client.ipAsset.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({ + await client.ipAsset.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({ nftContract: mockERC721, tokenId: tokenId!, derivData: { @@ -490,7 +490,7 @@ describe("IP Asset Functions ", () => { ], }); expect( - result.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash, + result.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash, ).to.be.a("string"); expect(result.distributeRoyaltyTokensTxHash).to.be.a("string"); expect(result.ipId).to.be.a("string"); diff --git a/packages/core-sdk/test/unit/resources/ipAsset.test.ts b/packages/core-sdk/test/unit/resources/ipAsset.test.ts index f09b2f04..6854ad6b 100644 --- a/packages/core-sdk/test/unit/resources/ipAsset.test.ts +++ b/packages/core-sdk/test/unit/resources/ipAsset.test.ts @@ -2462,7 +2462,7 @@ describe("Test IpAssetClient", () => { .stub(ipAssetClient.ipAssetRegistryClient, "ipId") .resolves("0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"); try { - await ipAssetClient.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({ + await ipAssetClient.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({ derivData: { parentIpIds: ["0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"], licenseTermsIds: [1n], @@ -2517,7 +2517,7 @@ describe("Test IpAssetClient", () => { }, ]); const result = - await ipAssetClient.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({ + await ipAssetClient.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({ derivData: { parentIpIds: ["0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"], licenseTermsIds: [1n], @@ -2575,7 +2575,7 @@ describe("Test IpAssetClient", () => { }, ]); const result = - await ipAssetClient.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({ + await ipAssetClient.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({ derivData: { parentIpIds: ["0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"], licenseTermsIds: [1n],