From f02a5051e91ad9ee9e6fb1ded2f51922483ad9cd Mon Sep 17 00:00:00 2001 From: Austin Malerba Date: Mon, 14 Feb 2022 09:45:01 -0700 Subject: [PATCH] tweaks --- pages/index.tsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index a3f245d8..c3ac649b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,12 +4,9 @@ import { QueryClient, QueryClientProvider } from "react-query"; import { ChakraProvider, Box, Heading } from "@chakra-ui/react"; import { Toaster } from "react-hot-toast"; import theme from "../theme"; -import { Provider as WagmiProvider, InjectedConnector, chain } from "wagmi"; +import { Provider as WagmiProvider } from "wagmi"; import { providers } from "ethers"; -// Chains for connectors to support -const chains = [chain.polygonTestnetMumbai, chain.hardhat]; - // Provide a fallback network while chainId is not yet defined const provider = ({ chainId, connector }) => { const selectedChain = connector?.chains.find((c) => c.id === chainId); @@ -18,16 +15,7 @@ const provider = ({ chainId, connector }) => { ); }; -// Enables sign-in with Metamask -const connectors = () => { - return [ - new InjectedConnector({ - chains, - }), - ]; -}; - -// Create a client +// Create a react-query client const queryClient = new QueryClient({ defaultOptions: { queries: { @@ -38,7 +26,7 @@ const queryClient = new QueryClient({ const App: NextPage = () => { return ( - +