diff --git a/package.json b/package.json index 532e71d..b217660 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "3.1.0", + "version": "3.2.1", "description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain", "main": "out/index.js", "types": "out/index.d.js", diff --git a/src/common/utils.ts b/src/common/utils.ts index 995a58e..8d75524 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -188,6 +188,7 @@ export function parseDataNft(value: NftType): DataNft { value.uris ?.slice(2) .map((uri) => Buffer.from(uri, 'base64').toString('ascii')) ?? [], + media: value.media, ...attributes }; return new DataNft(returnValue); @@ -366,12 +367,12 @@ export function validateSpecificParamsViewData(params: { typeof params.fwdHeaderKeys === 'string' && params.fwdHeaderKeys.trim() !== '' && params.fwdHeaderKeys.split(',').length > 0 && - params.fwdHeaderKeys.split(',').length < 5 + params.fwdHeaderKeys.split(',').length < 10 ) { fwdHeaderKeysIsValid = true; } else { validationMessages += - '[fwdHeaderKeys needs to be a comma separated lowercase string with less than 5 items]'; + '[fwdHeaderKeys needs to be a comma separated lowercase string with less than 10 items]'; } } @@ -390,7 +391,7 @@ export function validateSpecificParamsViewData(params: { .call(params.fwdHeaderMapLookup) .includes('Object') && Object.keys(params.fwdHeaderMapLookup).length > 0 && - Object.keys(params.fwdHeaderMapLookup).length < 5 + Object.keys(params.fwdHeaderMapLookup).length < 10 ) { if (!params._fwdHeaderMapLookupMustContainBearerAuthHeader) { fwdHeaderMapLookupIsValid = true; @@ -412,7 +413,7 @@ export function validateSpecificParamsViewData(params: { } } else { validationMessages += - '[fwdHeaderMapLookup needs to be a object map with maximum 5 items]'; + '[fwdHeaderMapLookup needs to be a object map with maximum 10 items]'; } } diff --git a/src/datanft.ts b/src/datanft.ts index 3753260..6608ca9 100644 --- a/src/datanft.ts +++ b/src/datanft.ts @@ -51,6 +51,7 @@ export class DataNft implements DataNftType { readonly overrideDataMarshalChainId: string = ''; readonly isDataNFTPH: boolean = false; readonly extraAssets: string[] = []; + readonly media: object[] = []; static networkConfiguration: Config; static apiConfiguration: string;