Skip to content

Commit

Permalink
fix: make mode optional in useSmartAccountClient (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev authored Feb 7, 2025
1 parent b3acd54 commit caed7a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion account-kit/core/src/actions/createAccount.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { type OptionalFields } from "@aa-sdk/core";
import type { AlchemyWebSigner } from "@account-kit/signer";
import {
createLightAccount,
Expand Down Expand Up @@ -47,7 +48,10 @@ export type AccountConfig<TAccount extends SupportedAccountTypes> =
>
: TAccount extends "ModularAccountV2"
? OmitSignerTransportChain<
CreateModularAccountV2Params<Transport, AlchemyWebSigner>
OptionalFields<
CreateModularAccountV2Params<Transport, AlchemyWebSigner>,
"mode"
>
>
: never;

Expand Down

0 comments on commit caed7a1

Please sign in to comment.