Skip to content

Commit

Permalink
cloud_functions: format guardian set index
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Jul 26, 2024
1 parent 5d98dea commit efcfd46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud_functions/src/getGuardianSetInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ async function getGuardianSetInfoByChain(): Promise<GuardianSetInfoByChain> {
timestamp: doc.data().timestamp,
contract: doc.data().contract,
guardianSet: doc.data().guardianSet,
guardianSetIndex: doc.data().guardianSetIndex,
guardianSetIndex: doc.data().guardianSetIndex.startsWith('0x')
? BigInt(doc.data().guardianSetIndex).toString()
: doc.data().guardianSetIndex,
};
});
} catch (e) {
Expand Down

0 comments on commit efcfd46

Please sign in to comment.