UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

7 lines 268 B
export const takeBytes = (bytes, opts = {}) => { const { offset, count } = opts; const start = (offset ? offset * 2 : 0) + 2; const end = count ? start + count * 2 : undefined; return `0x${bytes.slice(start, end)}`; }; //# sourceMappingURL=bytes.js.map