Skip to content

Commit

Permalink
fix: correct expiration time type
Browse files Browse the repository at this point in the history
Signed-off-by: david <[email protected]>
  • Loading branch information
daywiss committed Jul 6, 2023
1 parent b03edcf commit 72be9f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/safeSnap/utils/umaModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export const getModuleDetailsUma = async (
);

const isExpired =
Math.floor(Date.now() / 1000) >= Number(assertion.expirationTime);
Math.floor(Date.now() / 1000) >= assertion.expirationTime.toNumber();

return {
assertionId: event?.args?.assertionId,
Expand Down Expand Up @@ -449,7 +449,7 @@ export const getModuleDetailsUmaGql = async (
const assertionEvent = assertion0
? {
assertionId: assertion0.assertionId,
expirationTimestamp: assertion0.expirationTime,
expirationTimestamp: BigNumber.from(assertion0.expirationTime),
isExpired:
Math.floor(Date.now() / 1000) >= Number(assertion0.expirationTime),
isSettled: assertion0.settlementHash ? true : false,
Expand Down

0 comments on commit 72be9f4

Please sign in to comment.