Skip to content

Commit

Permalink
first try
Browse files Browse the repository at this point in the history
  • Loading branch information
hackfisher authored Oct 9, 2024
1 parent 93a560b commit ffefa88
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 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 { mainnet, darwinia } from "viem/chains";
import {darwinia} from "viem/chains";
import type { Chain } from "viem/chains";

// wagmi config
Expand Down Expand Up @@ -48,14 +48,12 @@ const KoiChain: Chain = {
};

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

0 comments on commit ffefa88

Please sign in to comment.