Skip to content

Commit

Permalink
fix issue "Credential revocation not working" (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Apr 8, 2024
1 parent f96d688 commit b3042ce
Show file tree
Hide file tree
Showing 3 changed files with 9 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.10.2",
"version": "1.10.3",
"description": "SDK to work with Polygon ID",
"main": "dist/node/cjs/index.js",
"module": "dist/node/esm/index.js",
Expand Down
7 changes: 6 additions & 1 deletion src/proof/verifiers/pub-signals-verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,12 @@ export class PubSignalsVerifier {
};
}

return { latest: true, transitionTimestamp: 0 };
return {
latest:
!contractState.replacedAtTimestamp ||
contractState.replacedAtTimestamp.toString() === zeroInt.toString(),
transitionTimestamp: contractState.replacedAtTimestamp?.toString() ?? 0
};
}

private async rootResolve(
Expand Down

0 comments on commit b3042ce

Please sign in to comment.