Skip to content

Commit d20c39e

Browse files
committed
check provider availability
1 parent 4df398a commit d20c39e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib/hooks/use-best-quote/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ export const useBestQuote = (
8080
return
8181
}
8282

83+
console.log({
84+
provider: !!provider,
85+
publicClient: !!publicClient,
86+
chainId,
87+
address,
88+
rpcUrl,
89+
})
8390
if (!provider || !publicClient || !chainId || !address || !rpcUrl) {
8491
console.error('Error fetching quotes - no provider or chain id present')
8592
return

0 commit comments

Comments
 (0)