Skip to content

Commit

Permalink
remove attach license terms check from mintLicenseTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-tucker committed Dec 16, 2024
1 parent 56c2c9c commit 1eb9d7d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/core-sdk/src/resources/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1eb9d7d

Please sign in to comment.