Skip to content

Commit

Permalink
Add transport for polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Mar 19, 2024
1 parent f2aaae2 commit 1982191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/NetworkConfig/web3-modal.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()
},
});

Expand Down

0 comments on commit 1982191

Please sign in to comment.