Skip to content

Commit

Permalink
Merge pull request #131 from Itheum/d-damian
Browse files Browse the repository at this point in the history
Media support
  • Loading branch information
damienen authored Apr 18, 2024
2 parents 0e361ad + 10ba03f commit 2e4cb01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/datanft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e4cb01

Please sign in to comment.