diff --git a/landing/siwe.react.js b/landing/siwe.react.js index 7fd782a0ca..d663221136 100644 --- a/landing/siwe.react.js +++ b/landing/siwe.react.js @@ -20,7 +20,7 @@ import { createSIWEMessage, } from 'lib/utils/siwe-utils.js'; import { - WagmiENSCacheProvider, + AlchemyENSCacheProvider, wagmiClient, wagmiChains, } from 'lib/utils/wagmi-utils.js'; @@ -161,7 +161,7 @@ function SIWEWrapper(): React.Node { }, []); return ( - + - + ); } diff --git a/lib/utils/wagmi-utils.js b/lib/utils/wagmi-utils.js index 0ae571b1e0..17d1008277 100644 --- a/lib/utils/wagmi-utils.js +++ b/lib/utils/wagmi-utils.js @@ -8,8 +8,9 @@ import { walletConnectWallet, // eslint-disable-next-line import/extensions } from '@rainbow-me/rainbowkit/wallets'; +import { ethers } from 'ethers'; import * as React from 'react'; -import { configureChains, createClient, useProvider } from 'wagmi'; +import { configureChains, createClient } from 'wagmi'; // eslint-disable-next-line import/extensions import { mainnet } from 'wagmi/chains'; // eslint-disable-next-line import/extensions @@ -65,15 +66,21 @@ const connectors = connectorsForWallets([ const wagmiClient: mixed = createWagmiClient({ connectors, provider }); const wagmiChains: mixed = chains; +const ethersAlchemyProvider = new ethers.providers.AlchemyProvider( + 'mainnet', + process.env.COMM_ALCHEMY_KEY, +); + type Props = { +children: React.Node, }; -function WagmiENSCacheProvider(props: Props): React.Node { +function AlchemyENSCacheProvider(props: Props): React.Node { const { children } = props; - const wagmiProvider = useProvider(); return ( - {children} + + {children} + ); } -export { wagmiClient, wagmiChains, WagmiENSCacheProvider }; +export { wagmiClient, wagmiChains, AlchemyENSCacheProvider }; diff --git a/web/app.react.js b/web/app.react.js index c0d722a61b..03c6a26db7 100644 --- a/web/app.react.js +++ b/web/app.react.js @@ -30,7 +30,7 @@ import type { LoadingStatus } from 'lib/types/loading-types.js'; import type { Dispatch } from 'lib/types/redux-types.js'; import { registerConfig } from 'lib/utils/config.js'; import { infoFromURL } from 'lib/utils/url-utils.js'; -import { WagmiENSCacheProvider, wagmiClient } from 'lib/utils/wagmi-utils.js'; +import { AlchemyENSCacheProvider, wagmiClient } from 'lib/utils/wagmi-utils.js'; import QrCodeLogin from './account/qr-code-login.react.js'; import WebEditThreadAvatarProvider from './avatars/web-edit-thread-avatar-provider.react.js'; @@ -191,7 +191,7 @@ class App extends React.PureComponent { - + @@ -202,7 +202,7 @@ class App extends React.PureComponent { {content} - +