Skip to content

Commit

Permalink
fix issue "Credential revocation not working"
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Apr 8, 2024
1 parent 96c4081 commit d2db145
Showing 1 changed file with 6 additions and 1 deletion.
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 d2db145

Please sign in to comment.