We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683238e commit f50c6d6Copy full SHA for f50c6d6
src/lib/hooks/use-approval.ts
@@ -22,9 +22,12 @@ export const useApproval = (
22
const tokenAddress = useMemo(() => {
23
if (!publicClient) return null
24
const chainId = publicClient?.chain.id
25
+ console.log('chainId', chainId)
26
return getAddressForToken(token.symbol, chainId) ?? null
27
}, [publicClient, token])
28
29
+ console.log('tokenAddress', tokenAddress)
30
+
31
const { data, refetch } = useReadContract({
32
address: tokenAddress as Address,
33
abi: ERC20_ABI,
0 commit comments