diff --git a/package.json b/package.json index 29a33a5..4eb57cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@itheum/sdk-mx-data-nft", - "version": "", + "version": "3.2.0-alpha.2", "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 8fa240b..92b7dfc 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -187,6 +187,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); 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;