poem-together-distance3
Version:
14 lines (13 loc) • 414 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fillAddressWith0x = fillAddressWith0x;
exports.parseNumberToBigint = parseNumberToBigint;
function fillAddressWith0x(address) {
return address.startsWith('0x') ? address : `0x${address}`;
}
function parseNumberToBigint(num) {
if (num === undefined) return undefined;
return typeof num !== 'bigint' ? BigInt(num) : num;
}
;