From 1982191b288e016b9118dc5f70f079675f8f537f Mon Sep 17 00:00:00 2001 From: Kirill Klimenko Date: Tue, 19 Mar 2024 18:59:13 +0100 Subject: [PATCH] Add transport for polygon --- src/providers/NetworkConfig/web3-modal.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/providers/NetworkConfig/web3-modal.config.ts b/src/providers/NetworkConfig/web3-modal.config.ts index 04d33e7105..ab601f0cb4 100644 --- a/src/providers/NetworkConfig/web3-modal.config.ts +++ b/src/providers/NetworkConfig/web3-modal.config.ts @@ -2,7 +2,7 @@ import { QueryClient } from '@tanstack/react-query'; import { createWeb3Modal } from '@web3modal/wagmi/react'; import { defaultWagmiConfig } from '@web3modal/wagmi/react/config'; import { http } from 'wagmi'; -import { hardhat, sepolia, mainnet, Chain } from 'wagmi/chains'; +import { hardhat, sepolia, mainnet, Chain, polygon } from 'wagmi/chains'; import { supportedChains } from './NetworkConfigProvider'; const supportedWagmiChains = supportedChains.map(config => config.wagmiChain); @@ -34,6 +34,7 @@ export const wagmiConfig = defaultWagmiConfig({ [sepolia.id]: http( `https://eth-sepolia.g.alchemy.com/v2/${import.meta.env.VITE_APP_ALCHEMY_SEPOLIA_API_KEY}`, ), + [polygon.id]: http() }, });