Skip to content

Commit

Permalink
Revert "feat: leave only five testnet for options in metamesk"
Browse files Browse the repository at this point in the history
This reverts commit 67dd7ed.
  • Loading branch information
dalaoqi committed Mar 24, 2024
1 parent 67dd7ed commit 06bcc4f
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions frontend_v2/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,20 @@ import type { AppProps } from 'next/app'
import { RainbowKitProvider, getDefaultWallets, getDefaultConfig } from '@rainbow-me/rainbowkit';
import { metaMaskWallet } from '@rainbow-me/rainbowkit/wallets';
import {
scroll,
scrollSepolia,
optimism,
optimismSepolia,
polygonZkEvm,
polygonZkEvmTestnet,
lineaTestnet,
sepolia,
linea,
lineaTestnet
} from 'wagmi/chains';

import { defineChain } from 'viem'

import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { WagmiProvider } from 'wagmi';

export const thunderTest = defineChain({
id: 18,
name: 'ThunderCore Testnet',
nativeCurrency: { name: 'ThunderCore Testnet Token', symbol: 'TST', decimals: 18 },
rpcUrls: {
default: { http: ['https://testnet-rpc.thundercore.com'] },
},
blockExplorers: {
default: { name: 'thundercore-blockscout-testnet', url: 'https://explorer-testnet.thundercore.com' },
},
contracts: {},
})

const { wallets } = getDefaultWallets();
const config = getDefaultConfig({
appName: 'RainbowKit demo',
Expand All @@ -40,11 +30,16 @@ const config = getDefaultConfig({
},
],
chains: [
sepolia,
scroll,
scrollSepolia,
polygonZkEvm,
polygonZkEvmTestnet,
optimism,
optimismSepolia,
linea,
lineaTestnet,
thunderTest,
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === 'true' ? [sepolia] : []),
],
ssr: true,
});
Expand Down

0 comments on commit 06bcc4f

Please sign in to comment.