@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
11 lines • 397 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.takeBytes = void 0;
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)}`;
};
exports.takeBytes = takeBytes;
//# sourceMappingURL=bytes.js.map