Skip to content

Commit

Permalink
wagmichains
Browse files Browse the repository at this point in the history
  • Loading branch information
uok825 committed Nov 19, 2023
1 parent bdb3b4f commit 80d1e9b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/nextjs/context/Web3Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
import { createWeb3Modal, defaultWagmiConfig } from '@web3modal/wagmi/react'

import { WagmiConfig } from 'wagmi'
import { arbitrum, mainnet, hardhat } from 'viem/chains'
import {
scrollSepolia, sepolia, hardhat, baseGoerli, mantleTestnet
} from 'viem/chains'

// 1. Get projectId
const projectId = '87b19285bd7e81f2a2dc76728f6eb331'

// 2. Create wagmiConfig
const metadata = {
name: 'Web3Modal',
description: 'Web3Modal Example',
name: 'meETH',
description: 'Domain Service',
url: 'https://web3modal.com',
icons: ['https://avatars.githubusercontent.com/u/37784886']
}

const chains = [mainnet, arbitrum, hardhat]
const chains = [scrollSepolia, sepolia, mantleTestnet, baseGoerli, hardhat]
const wagmiConfig = defaultWagmiConfig({ chains, projectId, metadata })

// 3. Create modal
Expand Down

0 comments on commit 80d1e9b

Please sign in to comment.