From ff4e979e2f34fac1ca05492d9b74a50d9cbbdc78 Mon Sep 17 00:00:00 2001 From: David Britt Date: Sat, 25 May 2024 22:43:13 -0400 Subject: [PATCH] Set createClient as async --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 0ba485cc..fdb98e0e 100644 --- a/src/client.ts +++ b/src/client.ts @@ -88,7 +88,7 @@ export type CreateClientArgs = { options?: ClientOpts; } & ({ network: Network } | { session: Session }); -export const createClient = ({ +export const createClient = async ({ network, session, options = {}, @@ -115,7 +115,7 @@ export const createClient = ({ const client = new Client(chain, options); // automatically set the session whenever the session is provided - client.setSession(session); + await client.setSession(session); return client; }