File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ export default config;
4242// app/layout.tsx
4343import { IqLoginProvider } from " @everipedia/iq-login/client" ;
4444import { headers } from " next/headers" ;
45+ import { getWagmiConfig } from " @everipedia/iq-login" ;
46+ import { fraxtal } from " viem/chains" ;
47+
48+ // Get the Wagmi config. It is important that this is outside the component
49+ const wagmiConfig = getWagmiConfig ([fraxtal ])
4550
4651export default async function RootLayout({
4752 children ,
@@ -56,6 +61,7 @@ export default async function RootLayout({
5661 <IqLoginProvider
5762 projectName = " YOUR_PROJECT_NAME"
5863 cookie = { cookie }
64+ wagmiConfig = { wagmiConfig }
5965 // Optional props:
6066 // chains={[mainnet]} // Default: mainnet
6167 // disableAuth={false} // Default: false
You can’t perform that action at this time.
0 commit comments