File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID
1818
1919if (! projectId ) throw new Error (' Project ID is not defined' )
2020
21- const metadata = {
21+ export const metadata = {
2222 name: ' Web3Modal' ,
2323 description: ' Web3Modal Example' ,
2424 url: ' https://web3modal.com' , // origin must match your domain & subdomain
@@ -57,7 +57,7 @@ In this example we will create a file called `context/index.tsx` outside our app
5757' use client'
5858
5959import React , { ReactNode } from ' react'
60- import { config , projectId } from ' @/config'
60+ import { config , projectId , metadata } from ' @/config'
6161
6262import { createWeb3Modal } from ' @web3modal/wagmi/react'
6363
@@ -72,6 +72,7 @@ if (!projectId) throw new Error('Project ID is not defined')
7272
7373// Create modal
7474createWeb3Modal ({
75+ metadata ,
7576 wagmiConfig: config ,
7677 projectId ,
7778 enableAnalytics: true // Optional - defaults to your Cloud configuration
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const config = defaultWagmiConfig({
3434
3535// 3. Create modal
3636createWeb3Modal ({
37+ metadata ,
3738 wagmiConfig: config ,
3839 projectId ,
3940 enableAnalytics: true // Optional - defaults to your Cloud configuration
You can’t perform that action at this time.
0 commit comments