diff --git a/cloud_functions/src/getGuardianSetInfo.ts b/cloud_functions/src/getGuardianSetInfo.ts index e537778f..efc2947b 100644 --- a/cloud_functions/src/getGuardianSetInfo.ts +++ b/cloud_functions/src/getGuardianSetInfo.ts @@ -38,7 +38,9 @@ async function getGuardianSetInfoByChain(): Promise { 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) {