UNPKG

dp-contract-proxy-kit

Version:

Enable batched transactions and contract account interactions using a unique deterministic Gnosis Safe.

15 lines 491 B
export function joinHexData(hexData) { return `0x${hexData .map((hex) => { const stripped = hex.replace(/^0x/, ''); return stripped.length % 2 === 0 ? stripped : '0' + stripped; }) .join('')}`; } export function getHexDataLength(hexData) { return Math.ceil((hexData.startsWith('0x') ? hexData.length - 2 : hexData.length) / 2); } export function toHex(v) { return `0x${Number(v.toString()).toString(16)}`; } //# sourceMappingURL=hexData.js.map