Skip to content

Commit 640aa48

Browse files
authored
Merge pull request WalletConnect#1658 from WalletConnect/fix/show-icon-on-signing
[Fix] Not showing icons when signing tx
2 parents 9602d04 + 7d131ec commit 640aa48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/appkit/next/wagmi/about/implementation.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID
1818

1919
if (!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

5959
import React, { ReactNode } from 'react'
60-
import { config, projectId } from '@/config'
60+
import { config, projectId, metadata } from '@/config'
6161

6262
import { createWeb3Modal } from '@web3modal/wagmi/react'
6363

@@ -72,6 +72,7 @@ if (!projectId) throw new Error('Project ID is not defined')
7272

7373
// Create modal
7474
createWeb3Modal({
75+
metadata,
7576
wagmiConfig: config,
7677
projectId,
7778
enableAnalytics: true // Optional - defaults to your Cloud configuration

docs/appkit/react/wagmi/about/implementation.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const config = defaultWagmiConfig({
3434

3535
// 3. Create modal
3636
createWeb3Modal({
37+
metadata,
3738
wagmiConfig: config,
3839
projectId,
3940
enableAnalytics: true // Optional - defaults to your Cloud configuration

0 commit comments

Comments
 (0)