UNPKG
@getclave/permissionless
Version:
latest (0.4.3)
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.39
A utility library for working with ERC-4337
docs.pimlico.io/permissionless
@getclave/permissionless
/
accounts
/
kernel
/
utils
/
isKernelV2.ts
7 lines
(5 loc)
•
205 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
type
{
KernelVersion
}
from
"../toKernelSmartAccount"
export
const
isKernelV2 = (
version
:
KernelVersion
<
"0.6"
|
"0.7"
>):
boolean
=>
{
const
regex =
/0\.2\.\d+/
return
regex.
test
(version) }