Skip to content

Commit

Permalink
fix issue "Credential revocation not working" (#88)
Browse files Browse the repository at this point in the history
* fix issue "Credential revocation not working"
  • Loading branch information
volodymyr-basiuk committed Apr 8, 2024
1 parent 96c4081 commit aad0e2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iden3/js-iden3-auth",
"version": "1.3.0",
"version": "1.3.1",
"description": "iden3-auth implementation in JavaScript",
"main": "dist/cjs/index.js",
"source": "./src/index.ts",
Expand Down Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@iden3/js-crypto": "1.1.0",
"@0xpolygonid/js-sdk": "1.10.0",
"@0xpolygonid/js-sdk": "1.10.3",
"@iden3/js-iden3-core": "1.3.1",
"@iden3/js-jsonld-merklization": "1.2.0",
"@iden3/js-jwz": "1.4.0",
Expand Down
7 changes: 6 additions & 1 deletion src/state/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ export class EthStateResolver implements IStateResolver {
};
}

return { latest: true, genesis: isGenesis, state, transitionTimestamp: 0 };
return {
latest: contractState.replacedAtTimestamp.isZero(),
genesis: isGenesis,
state,
transitionTimestamp: contractState.replacedAtTimestamp.toNumber()
};
}

public async rootResolve(state: bigint): Promise<ResolvedState> {
Expand Down

0 comments on commit aad0e2d

Please sign in to comment.