Skip to content

Commit

Permalink
fix issue with "Metadata not supported yet" (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Sep 19, 2024
1 parent f2e95fe commit db11c72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/storage/blockchain/onchain-zkp-verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit db11c72

Please sign in to comment.