Skip to content

Commit efcfd46

Browse files
committed
cloud_functions: format guardian set index
1 parent 5d98dea commit efcfd46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cloud_functions/src/getGuardianSetInfo.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ async function getGuardianSetInfoByChain(): Promise<GuardianSetInfoByChain> {
3838
timestamp: doc.data().timestamp,
3939
contract: doc.data().contract,
4040
guardianSet: doc.data().guardianSet,
41-
guardianSetIndex: doc.data().guardianSetIndex,
41+
guardianSetIndex: doc.data().guardianSetIndex.startsWith('0x')
42+
? BigInt(doc.data().guardianSetIndex).toString()
43+
: doc.data().guardianSetIndex,
4244
};
4345
});
4446
} catch (e) {

0 commit comments

Comments
 (0)