@@ -97,7 +97,7 @@ import {
97
97
import { getRevenueShare , validateLicenseTerms } from "../utils/licenseTermsHelper" ;
98
98
import { getDeadline , getPermissionSignature , getSignature } from "../utils/sign" ;
99
99
import { AccessPermission } from "../types/resources/permission" ;
100
- import { InnerPILTerms , InnerLicensingConfig , PILTerms } from "../types/resources/license" ;
100
+ import { PILTerms , InnerLicensingConfig , PILTermsInput } from "../types/resources/license" ;
101
101
import { MAX_ROYALTY_TOKEN , royaltySharesTotalSupply } from "../constants/common" ;
102
102
import { getFunctionSignature } from "../utils/getFunctionSignature" ;
103
103
import { LicensingConfig } from "../types/common" ;
@@ -769,7 +769,7 @@ export class IPAssetClient {
769
769
} ) ) ;
770
770
// Due to emit event log by sequence, we need to get license terms id from request.args
771
771
for ( let j = 0 ; j < request . args . length ; j ++ ) {
772
- const licenseTerms : InnerPILTerms [ ] = [ ] ;
772
+ const licenseTerms : PILTerms [ ] = [ ] ;
773
773
const licenseTermsData = request . args [ j ] . licenseTermsData ;
774
774
for ( let i = 0 ; i < licenseTermsData . length ; i ++ ) {
775
775
const licenseTerm = await validateLicenseTerms (
@@ -1942,7 +1942,7 @@ export class IPAssetClient {
1942
1942
return await this . ipAssetRegistryClient . isRegistered ( { id : getAddress ( ipId , "ipId" ) } ) ;
1943
1943
}
1944
1944
1945
- private async getLicenseTermsId ( licenseTerms : InnerPILTerms [ ] ) : Promise < bigint [ ] > {
1945
+ private async getLicenseTermsId ( licenseTerms : PILTerms [ ] ) : Promise < bigint [ ] > {
1946
1946
const licenseTermsIds : bigint [ ] = [ ] ;
1947
1947
for ( const licenseTerm of licenseTerms ) {
1948
1948
const licenseRes = await this . licenseTemplateClient . getLicenseTermsId ( {
@@ -2066,13 +2066,13 @@ export class IPAssetClient {
2066
2066
}
2067
2067
2068
2068
private async validateLicenseTermsData (
2069
- licenseTermsData : LicenseTermsData < PILTerms , LicensingConfig > [ ] ,
2069
+ licenseTermsData : LicenseTermsData < PILTermsInput , LicensingConfig > [ ] ,
2070
2070
) : Promise < {
2071
- licenseTerms : InnerPILTerms [ ] ;
2072
- licenseTermsData : LicenseTermsData < InnerPILTerms , InnerLicensingConfig > [ ] ;
2071
+ licenseTerms : PILTerms [ ] ;
2072
+ licenseTermsData : LicenseTermsData < PILTerms , InnerLicensingConfig > [ ] ;
2073
2073
} > {
2074
- const licenseTerms : InnerPILTerms [ ] = [ ] ;
2075
- const processedLicenseTermsData : LicenseTermsData < InnerPILTerms , InnerLicensingConfig > [ ] = [ ] ;
2074
+ const licenseTerms : PILTerms [ ] = [ ] ;
2075
+ const processedLicenseTermsData : LicenseTermsData < PILTerms , InnerLicensingConfig > [ ] = [ ] ;
2076
2076
for ( let i = 0 ; i < licenseTermsData . length ; i ++ ) {
2077
2077
const licenseTerm = await validateLicenseTerms ( licenseTermsData [ i ] . terms , this . rpcClient ) ;
2078
2078
licenseTerms . push ( licenseTerm ) ;
0 commit comments