UNPKG

@getclave/permissionless

Version:

A utility library for working with ERC-4337

7 lines (5 loc) 205 B
import type { KernelVersion } from "../toKernelSmartAccount" export const isKernelV2 = (version: KernelVersion<"0.6" | "0.7">): boolean => { const regex = /0\.2\.\d+/ return regex.test(version) }