UNPKG

@gemini-wallet/core

Version:

Core SDK for Gemini Wallet integration with popup communication

10 lines (8 loc) 266 B
export const hexStringFromNumber = (num: number): string => `0x${BigInt(num).toString(16)}`; export const safeJsonStringify = (obj: unknown) => JSON.stringify( obj, (_, value) => (typeof value === "bigint" ? value.toString() + "n" : value), 2, );