From efcfd46fc5a43359aec4d5778e10906e7ac4fa3b Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Fri, 26 Jul 2024 07:47:21 -0500 Subject: [PATCH] cloud_functions: format guardian set index --- cloud_functions/src/getGuardianSetInfo.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {