Skip to content

Commit

Permalink
Merge pull request #17 from dynamic-labs/chore/networks
Browse files Browse the repository at this point in the history
chore: add missing networks to wagmi config
  • Loading branch information
matthew1809 authored Jul 9, 2024
2 parents 140a317 + 952ed06 commit b832691
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 b832691

Please sign in to comment.