Skip to content

Commit f50c6d6

Browse files
committed
check addr
1 parent 683238e commit f50c6d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib/hooks/use-approval.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ export const useApproval = (
2222
const tokenAddress = useMemo(() => {
2323
if (!publicClient) return null
2424
const chainId = publicClient?.chain.id
25+
console.log('chainId', chainId)
2526
return getAddressForToken(token.symbol, chainId) ?? null
2627
}, [publicClient, token])
2728

29+
console.log('tokenAddress', tokenAddress)
30+
2831
const { data, refetch } = useReadContract({
2932
address: tokenAddress as Address,
3033
abi: ERC20_ABI,

0 commit comments

Comments
 (0)