@0xpolygonid/js-sdk 1.20.0 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -230,7 +230,7 @@ class OnChainZKPVerifier {
230
230
  });
231
231
  }
232
232
  }
233
- const metadata = this.packMetadatas(metadataArr);
233
+ const metadata = metadataArr.length ? this.packMetadatas(metadataArr) : '0x';
234
234
  payload.push({
235
235
  requestId: requestID,
236
236
  zkProof: zkProofEncoded,
@@ -224,7 +224,7 @@ export class OnChainZKPVerifier {
224
224
  });
225
225
  }
226
226
  }
227
- const metadata = this.packMetadatas(metadataArr);
227
+ const metadata = metadataArr.length ? this.packMetadatas(metadataArr) : '0x';
228
228
  payload.push({
229
229
  requestId: requestID,
230
230
  zkProof: zkProofEncoded,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "SDK to work with Polygon ID",
5
5
  "main": "dist/node/cjs/index.js",
6
6
  "module": "dist/node/esm/index.js",