Fix: add missing await when creating Abstract client#416
Fix: add missing await when creating Abstract client#416LisaMoore01 wants to merge 1 commit intoAbstract-Foundation:mainfrom
Conversation
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.
|
PR SummaryLow Risk Overview Written by Cursor Bugbot for commit 8328398. This will update automatically on new commits. Configure here. |
Ensure that the result of
createAbstractClientis awaited withinqueryFnso that the resolved client instance is returned.This improves consistency and avoids potential issues with unresolved promises.
PR-Codex overview
This PR focuses on changing the instantiation of the
clientin theuseAbstractClient.tsfile to useawait, indicating thatcreateAbstractClientis now an asynchronous operation.Detailed summary
const client = createAbstractClient({toconst client = await createAbstractClient({to handle the asynchronous nature ofcreateAbstractClient.