@0xpolygonid/js-sdk 1.10.2 → 1.10.3

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.
@@ -417,7 +417,11 @@ class PubSignalsVerifier {
417
417
  transitionTimestamp: contractState.replacedAtTimestamp.toString()
418
418
  };
419
419
  }
420
- return { latest: true, transitionTimestamp: 0 };
420
+ return {
421
+ latest: !contractState.replacedAtTimestamp ||
422
+ contractState.replacedAtTimestamp.toString() === zeroInt.toString(),
423
+ transitionTimestamp: contractState.replacedAtTimestamp?.toString() ?? 0
424
+ };
421
425
  }
422
426
  async rootResolve(state, id) {
423
427
  let globalStateInfo;
@@ -414,7 +414,11 @@ export class PubSignalsVerifier {
414
414
  transitionTimestamp: contractState.replacedAtTimestamp.toString()
415
415
  };
416
416
  }
417
- return { latest: true, transitionTimestamp: 0 };
417
+ return {
418
+ latest: !contractState.replacedAtTimestamp ||
419
+ contractState.replacedAtTimestamp.toString() === zeroInt.toString(),
420
+ transitionTimestamp: contractState.replacedAtTimestamp?.toString() ?? 0
421
+ };
418
422
  }
419
423
  async rootResolve(state, id) {
420
424
  let globalStateInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xpolygonid/js-sdk",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
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",