diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index fa713c47..57556fb1 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,11 @@ # @zerodev/sdk +## 5.2.10 + +### Patch Changes + +- Fixed createKernelAccountClient return type issue + ## 5.2.9 ### Patch Changes diff --git a/packages/core/clients/decorators/kernel.ts b/packages/core/clients/decorators/kernel.ts index e7cc69ad..e5713ee5 100644 --- a/packages/core/clients/decorators/kernel.ts +++ b/packages/core/clients/decorators/kernel.ts @@ -89,9 +89,10 @@ export type KernelAccountClientActions< > } -export const kernelAccountClientActions = - ({ middleware }: Middleware) => - < +export function kernelAccountClientActions({ + middleware +}: Middleware) { + return < TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends KernelSmartAccount | undefined = @@ -111,3 +112,4 @@ export const kernelAccountClientActions = ), getUserOperationGasPrice: async () => getUserOperationGasPrice(client) }) +} diff --git a/packages/core/clients/kernelAccountClient.ts b/packages/core/clients/kernelAccountClient.ts index 617afa0a..dedf4c4c 100644 --- a/packages/core/clients/kernelAccountClient.ts +++ b/packages/core/clients/kernelAccountClient.ts @@ -26,14 +26,12 @@ export type KernelAccountClient< account extends KernelSmartAccount | undefined = | KernelSmartAccount | undefined -> = Prettify< - Client< - transport, - chain, - account, - BundlerRpcSchema, - KernelAccountClientActions - > +> = Client< + transport, + chain, + account, + BundlerRpcSchema, + KernelAccountClientActions > export type SmartAccountClientConfig< diff --git a/packages/core/package.json b/packages/core/package.json index d6a70456..49644ae1 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@zerodev/sdk", - "version": "5.2.9", + "version": "5.2.10", "author": "ZeroDev", "main": "./_cjs/index.js", "module": "./_esm/index.js",