Skip to content

Commit

Permalink
Mainnet is needed for other components
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher authored Oct 9, 2024
1 parent fd46c36 commit eeae530
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions context/Web3Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
PUB_WALLET_ICON,
PUB_WEB3_ENDPOINT,
} from "@/constants";
import {darwinia} from "viem/chains";
import {mainnet, darwinia, crab} from "viem/chains";
import type { Chain } from "viem/chains";

// wagmi config
Expand All @@ -35,12 +35,13 @@ const crabChain: Chain = {
};

export const config = createConfig({
chains: [PUB_CHAIN, crabChain],
chains: [PUB_CHAIN, mainnet, darwinia, crab],
ssr: true,
transports: {
[PUB_CHAIN.id]: http(PUB_WEB3_ENDPOINT, { batch: true }),
// [darwinia.id]: http(darwinia.rpcUrls.default.http[0], { batch: true }),
[crabChain.id]: http(crabChain.rpcUrls.default.http[0], { batch: true }),
[mainnet.id]: http(mainnet.rpcUrls.default.http[0], { batch: true }),
[darwinia.id]: http(darwinia.rpcUrls.default.http[0], { batch: true }),
[crab.id]: http(crab.rpcUrls.default.http[0], { batch: true }),
},
connectors: [
walletConnect({
Expand Down

0 comments on commit eeae530

Please sign in to comment.