File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
2- import {
3- EthereumClient ,
4- w3mConnectors ,
5- w3mProvider ,
6- } from "@web3modal/ethereum" ;
2+ import { EthereumClient , w3mConnectors } from "@web3modal/ethereum" ;
73import { Web3Modal } from "@web3modal/react" ;
84import { configureChains , createConfig , WagmiConfig } from "wagmi" ;
95import { arbitrumGoerli , gnosisChiado } from "wagmi/chains" ;
6+ import { publicProvider } from "wagmi/providers/public" ;
7+ import { alchemyProvider } from "wagmi/dist/providers/alchemy" ;
108
119const chains = [ arbitrumGoerli , gnosisChiado ] ;
1210const projectId = "6efaa26765fa742153baf9281e218217" ;
1311
14- const { publicClient } = configureChains ( chains , [ w3mProvider ( { projectId } ) ] ) ;
12+ const { publicClient } = configureChains ( chains , [ alchemyProvider ( { apiKey : "" } ) , publicProvider ( ) ] ) ;
1513
1614const wagmiConfig = createConfig ( {
1715 autoConnect : false ,
@@ -21,9 +19,7 @@ const wagmiConfig = createConfig({
2119
2220const ethereumClient = new EthereumClient ( wagmiConfig , chains ) ;
2321
24- const Web3Provider : React . FC < { children : React . ReactNode } > = ( {
25- children,
26- } ) => (
22+ const Web3Provider : React . FC < { children : React . ReactNode } > = ( { children } ) => (
2723 < >
2824 < WagmiConfig config = { wagmiConfig } > { children } </ WagmiConfig >
2925 < Web3Modal { ...{ projectId, ethereumClient } } />
You can’t perform that action at this time.
0 commit comments