UNPKG

@gemini-wallet/core

Version:

Core SDK for Gemini Wallet integration with popup communication

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