From 1eb9d7d0b0b16d1c104330c32f30d80ce26f1ff0 Mon Sep 17 00:00:00 2001 From: jacob-tucker Date: Mon, 16 Dec 2024 11:39:30 -0500 Subject: [PATCH] remove attach license terms check from mintLicenseTokens --- packages/core-sdk/src/resources/license.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/core-sdk/src/resources/license.ts b/packages/core-sdk/src/resources/license.ts index aa08971f..7597fe43 100644 --- a/packages/core-sdk/src/resources/license.ts +++ b/packages/core-sdk/src/resources/license.ts @@ -370,20 +370,6 @@ export class LicenseClient { if (!isExisted) { throw new Error(`License terms id ${request.licenseTermsId} do not exist.`); } - const isAttachedLicenseTerms = - await this.licenseRegistryReadOnlyClient.hasIpAttachedLicenseTerms({ - ipId: request.licensorIpId, - licenseTemplate: - (request.licenseTemplate && - getAddress(request.licenseTemplate, "request.licenseTemplate")) || - this.licenseTemplateClient.address, - licenseTermsId: request.licenseTermsId, - }); - if (!isAttachedLicenseTerms) { - throw new Error( - `License terms id ${request.licenseTermsId} is not attached to the IP with id ${request.licensorIpId}.`, - ); - } const amount = BigInt(request.amount || 1); const req = { licensorIpId: request.licensorIpId,