UNPKG

@zerodev/sdk

Version:

A utility library for working with ERC-4337

22 lines (20 loc) 513 B
import { CALL_TYPE } from "../../../../constants.js" import type { CallArgs } from "../types.js" import { type EncodeExecuteOptions, encodeExecuteCall } from "./encodeExecuteCall.js" export const encodeExecuteSingleCall = ( args: CallArgs, options: Omit<EncodeExecuteOptions, "callType">, includeHooks?: boolean ) => { return encodeExecuteCall( args, { callType: CALL_TYPE.SINGLE, execType: options.execType }, includeHooks ) }