Skip to content

Commit 6173d78

Browse files
authored
use appkit account (#1861)
1 parent 7aa67f3 commit 6173d78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/hooks/use-wallet.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useAccount, usePublicClient } from 'wagmi'
1+
import { useAppKitAccount } from '@reown/appkit/react'
2+
import { usePublicClient } from 'wagmi'
23

34
import { useNetwork } from '@/lib/hooks/use-network'
45

@@ -16,7 +17,7 @@ type Account = {
1617

1718
// A wrapper to be able to easily exchange how we retrieve the account
1819
export const useWallet = (): Account => {
19-
const { address } = useAccount()
20+
const { address } = useAppKitAccount()
2021
const { chainId } = useNetwork()
2122
const publicClient = usePublicClient({ chainId })
2223
const isConnected = !!address

0 commit comments

Comments
 (0)