Hey is a decentralized and permissionless social media app built with Lens Protocol 馃尶
at main 13 lines 263 B view raw
1const getDbPostId = (decimal: string): string => { 2 if (!/^\d+$/.test(decimal)) { 3 if (decimal === "") { 4 return ""; 5 } 6 7 throw new Error("Invalid decimal value"); 8 } 9 10 return `\\x${BigInt(decimal).toString(16)}`; 11}; 12 13export default getDbPostId;