Skip to content

Commit

Permalink
Rename registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTok…
Browse files Browse the repository at this point in the history
…ens to registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens
  • Loading branch information
bonnie57 committed Dec 16, 2024
1 parent 8c7e87e commit 6a0ecf3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/core-sdk/src/resources/ipAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse> {
try {
Expand Down Expand Up @@ -1811,7 +1811,7 @@ export class IPAssetClient {
});
}
return {
registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: txHash,
registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: txHash,
distributeRoyaltyTokensTxHash,
ipId,
tokenId,
Expand Down
2 changes: 1 addition & 1 deletion packages/core-sdk/src/types/resources/ipAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensReq
} & IPMetadataInfo;

export type RegisterDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensResponse = {
registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: Address;
registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokensTxHash: Address;
distributeRoyaltyTokensTxHash: Address;
ipId: Address;
tokenId: bigint;
Expand Down
4 changes: 2 additions & 2 deletions packages/core-sdk/test/integration/ipAsset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions packages/core-sdk/test/unit/resources/ipAsset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -2517,7 +2517,7 @@ describe("Test IpAssetClient", () => {
},
]);
const result =
await ipAssetClient.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({
await ipAssetClient.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({
derivData: {
parentIpIds: ["0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"],
licenseTermsIds: [1n],
Expand Down Expand Up @@ -2575,7 +2575,7 @@ describe("Test IpAssetClient", () => {
},
]);
const result =
await ipAssetClient.registerDerivativeAndAttachLicenseTermsAndDistributeRoyaltyTokens({
await ipAssetClient.registerDerivativeIpAndAttachLicenseTermsAndDistributeRoyaltyTokens({
derivData: {
parentIpIds: ["0x1daAE3197Bc469Cb97B917aa460a12dD95c6627c"],
licenseTermsIds: [1n],
Expand Down

0 comments on commit 6a0ecf3

Please sign in to comment.