From 83283981971d1dd5b82193ca83aec506a6bd39a3 Mon Sep 17 00:00:00 2001 From: Lisa Date: Sat, 21 Mar 2026 03:28:10 +0000 Subject: [PATCH] Fix: add missing await when creating Abstract client Added an explicit await for createAbstractClient inside queryFn to ensure the resolved client instance is returned instead of a Promise. This improves readability and keeps the implementation consistent with other usages of createAbstractClient across the codebase. --- packages/agw-react/src/hooks/useAbstractClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/agw-react/src/hooks/useAbstractClient.ts b/packages/agw-react/src/hooks/useAbstractClient.ts index 5741daa4..8a994f2d 100644 --- a/packages/agw-react/src/hooks/useAbstractClient.ts +++ b/packages/agw-react/src/hooks/useAbstractClient.ts @@ -69,7 +69,7 @@ export const useAbstractClient = ({ throw new Error('No signer found'); } - const client = createAbstractClient({ + const client = await createAbstractClient({ signer: signer.account, chain, transport: custom(signer.transport),