From db11c72475e6ce4a7e94911e520b6b4f1458029e Mon Sep 17 00:00:00 2001 From: volodymyr-basiuk <31999965+volodymyr-basiuk@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:53:42 +0300 Subject: [PATCH] fix issue with "Metadata not supported yet" (#271) --- package-lock.json | 4 ++-- package.json | 2 +- src/storage/blockchain/onchain-zkp-verifier.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index ec64dcd3..b7671e5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.20.0", + "version": "1.20.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@0xpolygonid/js-sdk", - "version": "1.20.0", + "version": "1.20.1", "license": "MIT or Apache-2.0", "dependencies": { "@noble/curves": "^1.4.0", diff --git a/package.json b/package.json index eb86c0be..db2d9543 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.20.0", + "version": "1.20.1", "description": "SDK to work with Polygon ID", "main": "dist/node/cjs/index.js", "module": "dist/node/esm/index.js", diff --git a/src/storage/blockchain/onchain-zkp-verifier.ts b/src/storage/blockchain/onchain-zkp-verifier.ts index 3727fbb7..fc3ac635 100644 --- a/src/storage/blockchain/onchain-zkp-verifier.ts +++ b/src/storage/blockchain/onchain-zkp-verifier.ts @@ -334,7 +334,7 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier { } } - const metadata = this.packMetadatas(metadataArr); + const metadata = metadataArr.length ? this.packMetadatas(metadataArr) : '0x'; payload.push({ requestId: requestID, zkProof: zkProofEncoded,