diff --git a/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx b/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx index 05273c2..e10f5fa 100644 --- a/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx +++ b/packages/nextjs/components/ScaffoldEthAppWithProviders.tsx @@ -1,6 +1,7 @@ "use client"; import { useEffect, useState } from "react"; +import { ApolloClient, ApolloProvider, InMemoryCache } from "@apollo/client"; import { RainbowKitProvider, darkTheme, lightTheme } from "@rainbow-me/rainbowkit"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { useTheme } from "next-themes"; @@ -53,17 +54,25 @@ export const ScaffoldEthAppWithProviders = ({ children }: { children: React.Reac setMounted(true); }, []); + const subgraphUri = "http://localhost:8000/subgraphs/name/scaffold-eth/your-contract"; + const apolloClient = new ApolloClient({ + uri: subgraphUri, + cache: new InMemoryCache(), + }); + return ( - - - - - {children} - - - + + + + + + {children} + + + + ); };