From caed7a163dc67e03b25b940e3bf0a899980d99e1 Mon Sep 17 00:00:00 2001 From: howy <132113803+howydev@users.noreply.github.com> Date: Fri, 7 Feb 2025 18:58:55 -0500 Subject: [PATCH] fix: make mode optional in useSmartAccountClient (#1335) --- account-kit/core/src/actions/createAccount.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/account-kit/core/src/actions/createAccount.ts b/account-kit/core/src/actions/createAccount.ts index 33786f49e6..53e1957b9e 100644 --- a/account-kit/core/src/actions/createAccount.ts +++ b/account-kit/core/src/actions/createAccount.ts @@ -1,3 +1,4 @@ +import { type OptionalFields } from "@aa-sdk/core"; import type { AlchemyWebSigner } from "@account-kit/signer"; import { createLightAccount, @@ -47,7 +48,10 @@ export type AccountConfig = > : TAccount extends "ModularAccountV2" ? OmitSignerTransportChain< - CreateModularAccountV2Params + OptionalFields< + CreateModularAccountV2Params, + "mode" + > > : never;