Skip to content

Commit

Permalink
fix: fix typing in kernelAccountActions and release
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Apr 23, 2024
1 parent b003dd0 commit 4f49387
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zerodev/sdk

## 5.2.7

### Patch Changes

- fix kernelAccountActions typing

## 5.2.6

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/core/clients/decorators/kernel.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { type SmartAccountActions, smartAccountActions } from "permissionless"
import type { SmartAccount } from "permissionless/accounts/types"
import { type Middleware } from "permissionless/actions/smartAccount"
import type { EntryPoint, Prettify } from "permissionless/types"
import type { Chain, Client, Transport } from "viem"
Expand All @@ -23,6 +22,7 @@ import {
sponsorUserOperation
} from "../../actions/paymaster/sponsorUserOperation.js"
import type { ZeroDevPaymasterClient } from "../paymasterClient.js"
import { type KernelSmartAccount } from "../../accounts/index.js";

export type ZeroDevPaymasterClientActions<entryPoint extends EntryPoint> = {
/**
Expand Down Expand Up @@ -59,8 +59,8 @@ export const zerodevPaymasterActions =
export type KernelAccountClientActions<
entryPoint extends EntryPoint,
TChain extends Chain | undefined = Chain | undefined,
TSmartAccount extends SmartAccount<entryPoint> | undefined =
| SmartAccount<entryPoint>
TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
| KernelSmartAccount<entryPoint>
| undefined
> = SmartAccountActions<entryPoint, TChain, TSmartAccount> & {
/**
Expand Down Expand Up @@ -94,8 +94,8 @@ export const kernelAccountClientActions =
<
TTransport extends Transport,
TChain extends Chain | undefined = Chain | undefined,
TSmartAccount extends SmartAccount<entryPoint> | undefined =
| SmartAccount<entryPoint>
TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
| KernelSmartAccount<entryPoint>
| undefined
>(
client: Client<TTransport, TChain, TSmartAccount>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zerodev/sdk",
"version": "5.2.6",
"version": "5.2.7",
"author": "ZeroDev",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand Down

0 comments on commit 4f49387

Please sign in to comment.