UNPKG

permissionless

Version:

A utility library for working with ERC-4337

33 lines 993 B
import { encodeFunctionData } from "viem"; export const getFactoryData = async ({ admin, salt }) => { return encodeFunctionData({ abi: [ { inputs: [ { internalType: "address", name: "_admin", type: "address" }, { internalType: "bytes", name: "_salt", type: "bytes" } ], name: "createAccount", outputs: [ { internalType: "address", type: "address" } ], stateMutability: "nonpayable", type: "function" } ], functionName: "createAccount", args: [admin, salt] }); }; //# sourceMappingURL=getFactoryData.js.map