Skip to content

Commit

Permalink
fix: fix typing in createKernelAccountClient and release
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Apr 19, 2024
1 parent dc501c5 commit 5789f2a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 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.6

### Patch Changes

- Fix typing in createKernelAccountClient

## 5.2.5

### Patch Changes
Expand Down
18 changes: 10 additions & 8 deletions packages/core/clients/kernelAccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,22 @@ export type SmartAccountClientConfig<
>

export const createKernelAccountClient = <
entryPoint extends EntryPoint,
TTransport extends Transport,
TSmartAccount extends KernelSmartAccount<TEntryPoint> | undefined,
TTransport extends Transport = Transport,
TChain extends Chain | undefined = undefined,
TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
| KernelSmartAccount<entryPoint>
| undefined
TEntryPoint extends EntryPoint = TSmartAccount extends KernelSmartAccount<
infer U
>
? U
: never
>(
parameters: SmartAccountClientConfig<
entryPoint,
TEntryPoint,
TTransport,
TChain,
TSmartAccount
>
): KernelAccountClient<entryPoint, TTransport, TChain, TSmartAccount> => {
): KernelAccountClient<TEntryPoint, TTransport, TChain, TSmartAccount> => {
const {
key = "Account",
name = "Kernel Account Client",
Expand Down Expand Up @@ -116,5 +118,5 @@ export const createKernelAccountClient = <
kernelAccountClientActions({
middleware
})
) as KernelAccountClient<entryPoint, TTransport, TChain, TSmartAccount>
) as KernelAccountClient<TEntryPoint, TTransport, TChain, TSmartAccount>
}
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.5",
"version": "5.2.6",
"author": "ZeroDev",
"main": "./_cjs/index.js",
"module": "./_esm/index.js",
Expand Down

0 comments on commit 5789f2a

Please sign in to comment.