diff --git a/packages/app/hooks/auth/use-wallet-login.web.ts b/packages/app/hooks/auth/use-wallet-login.web.ts index 4362b8a1cb..c87fd0e0f0 100644 --- a/packages/app/hooks/auth/use-wallet-login.web.ts +++ b/packages/app/hooks/auth/use-wallet-login.web.ts @@ -5,7 +5,7 @@ import { useUser } from "../use-user"; import { useWeb3 } from "../use-web3"; import { useAuth } from "./use-auth"; import { useNonce } from "./use-nonce"; -import { useWagmi } from "./use-wagmi"; +import { useWallet } from "./use-wallet"; import { useWalletLoginState } from "./use-wallet-login-state"; const LOGIN_WALLET_ENDPOINT = "login_wallet"; @@ -28,7 +28,7 @@ export function useWalletLogin() { signed, provider, signature, - } = useWagmi(); + } = useWallet(); const { isAuthenticated } = useUser(); const accessToken = useAccessToken(); const authenticated = useMemo(() => !!isAuthenticated, [isAuthenticated]); diff --git a/packages/app/hooks/use-buy-nft.ts b/packages/app/hooks/use-buy-nft.ts index d5fd7183d8..891abc50dd 100644 --- a/packages/app/hooks/use-buy-nft.ts +++ b/packages/app/hooks/use-buy-nft.ts @@ -8,7 +8,7 @@ import ierc20MetaTx from "app/abi/IERC20MetaTx.json"; import ierc20MetaTxNonces from "app/abi/IERC20MetaTxNonces.json"; import iercPermit20Abi from "app/abi/IERC20Permit.json"; import marketplaceAbi from "app/abi/ShowtimeV1Market.json"; -import { useWagmi } from "app/hooks/auth/use-wagmi"; +import { useWallet } from "app/hooks/auth/use-wallet"; import { useSignerAndProvider } from "app/hooks/use-signer-provider"; import { track } from "app/lib/analytics"; import { CURRENCY_NAMES, LIST_CURRENCIES } from "app/lib/constants"; @@ -81,7 +81,7 @@ const buyNFTReducer = ( export const useBuyNFT = () => { const [state, dispatch] = useReducer(buyNFTReducer, initialState); const { getSignerAndProvider } = useSignerAndProvider(); - const { address, signTypedDataAsync } = useWagmi(); + const { address, signTypedDataAsync } = useWallet(); const buyNFT = async ({ nft, quantity }: { nft: NFT; quantity: number }) => { if (!nft || !nft.listing) return; diff --git a/packages/app/hooks/use-current-user-address.ts b/packages/app/hooks/use-current-user-address.ts index a41f769db3..10593f0f2f 100644 --- a/packages/app/hooks/use-current-user-address.ts +++ b/packages/app/hooks/use-current-user-address.ts @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; import { Platform } from "react-native"; -import { useWagmi } from "app/hooks/auth/use-wagmi"; +import { useWallet } from "app/hooks/auth/use-wallet"; import { useUser } from "app/hooks/use-user"; import { useWeb3 } from "app/hooks/use-web3"; import { useWalletConnect } from "app/lib/walletconnect"; @@ -16,7 +16,7 @@ function useCurrentUserAddress() { const [userAddress, setUserAddress] = useState(""); const { web3 } = useWeb3(); const connector = useWalletConnect(); - const { address } = useWagmi(); + const { address } = useWallet(); const connectedAddress = connector?.session?.accounts[0]; useEffect(() => { diff --git a/packages/app/hooks/use-signer-provider.ts b/packages/app/hooks/use-signer-provider.ts index 7814f36d5d..474f6af1fb 100644 --- a/packages/app/hooks/use-signer-provider.ts +++ b/packages/app/hooks/use-signer-provider.ts @@ -1,6 +1,6 @@ import { Platform } from "react-native"; -import { useWagmi } from "app/hooks/auth/use-wagmi"; +import { useWallet } from "app/hooks/auth/use-wallet"; import { useWeb3 } from "app/hooks/use-web3"; import { useWalletConnect } from "app/lib/walletconnect"; import { getBiconomy } from "app/utilities"; @@ -11,7 +11,7 @@ export const useSignerAndProvider = () => { const connector = useWalletConnect(); let { web3 } = useWeb3(); const Alert = useAlert(); - const { address } = useWagmi(); + const { address } = useWallet(); const getSignerAndProvider = async () => { let userAddress; diff --git a/packages/app/providers/web3-provider.web.tsx b/packages/app/providers/web3-provider.web.tsx index e8fdab4d56..b60461d2e9 100644 --- a/packages/app/providers/web3-provider.web.tsx +++ b/packages/app/providers/web3-provider.web.tsx @@ -1,4 +1,4 @@ -import { useWagmi } from "app/hooks/auth/use-wagmi"; +import { useWallet } from "app/hooks/auth/use-wallet"; import { Web3Provider as Web3ProviderBase } from "./web3-provider.tsx"; @@ -7,7 +7,7 @@ interface Web3ProviderProps { } export function Web3Provider({ children }: Web3ProviderProps) { - const { connected, provider } = useWagmi(); + const { connected, provider } = useWallet(); return (