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,