Skip to content

Commit

Permalink
Merge pull request #133 from Itheum/develop
Browse files Browse the repository at this point in the history
feature: increase fwdHeaderKeys to less than 10 from 5
  • Loading branch information
damienen authored Apr 18, 2024
2 parents 3dd11ef + 3ef4d16 commit be9b0d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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": "3.1.0",
"version": "3.2.0",
"description": "SDK for Itheum's Data NFT Technology on MultiversX Blockchain",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down
5 changes: 3 additions & 2 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 Expand Up @@ -389,7 +390,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;
Expand All @@ -411,7 +412,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]';
}
}

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 be9b0d2

Please sign in to comment.