Skip to content

Commit

Permalink
chore: add missing networks to wagmi config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRAG committed Jul 9, 2024
1 parent 140a317 commit 952ed06
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions packages/nextjs/services/web3/wagmiConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
import { getOrMapViemChain } from "@dynamic-labs/viem-utils";
import { Chain, createClient, http } from "viem";
import { baseSepolia, hardhat, mainnet } from "viem/chains";
import {
arbitrum,
arbitrumSepolia,
base,
baseSepolia,
hardhat,
mainnet,
polygon,
polygonAmoy,
scroll,
scrollSepolia,
sepolia,
} from "viem/chains";
import { createConfig } from "wagmi";
import { customEvmNetworks } from "~~/lib/networks";
import scaffoldConfig from "~~/scaffold.config";
import { getAlchemyHttpUrl } from "~~/utils/scaffold-eth";

export const wagmiConfig = createConfig({
chains: [baseSepolia, mainnet, ...customEvmNetworks.map(getOrMapViemChain)],
chains: [
arbitrum,
arbitrumSepolia,
base,
baseSepolia,
mainnet,
polygon,
polygonAmoy,
scroll,
scrollSepolia,
sepolia,
...customEvmNetworks.map(getOrMapViemChain),
],
ssr: true,
client({ chain }) {
return createClient({
Expand Down

0 comments on commit 952ed06

Please sign in to comment.