UNPKG

skill-collect-direction

Version:
7 lines 256 B
export function fillAddressWith0x(address) { return address.startsWith('0x') ? address : "0x".concat(address); } export function parseNumberToBigint(num) { if (num === undefined) return undefined; return typeof num !== 'bigint' ? BigInt(num) : num; }