Skip to content

Commit 1da7db9

Browse files
Merge pull request #138 from EveripediaNetwork/fix-fix-readme-to-include-wagmi-config-in-example
fix readme to include wagmi config in example
2 parents 7ae4bcf + aca3c25 commit 1da7db9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ export default config;
4242
// app/layout.tsx
4343
import { IqLoginProvider } from "@everipedia/iq-login/client";
4444
import { 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

4651
export 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

0 commit comments

Comments
 (0)