Skip to content

Commit

Permalink
Revert switch to local rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
gpxl-dev committed Mar 27, 2024
1 parent a8509d5 commit 764545c
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { CoinbaseWalletConnector } from "wagmi/connectors/coinbaseWallet";
import { InjectedConnector } from "wagmi/connectors/injected";
import { MetaMaskConnector } from "wagmi/connectors/metaMask";
import { WalletConnectConnector } from "wagmi/connectors/walletConnect";
import { jsonRpcProvider } from "wagmi/providers/jsonRpc";
import App from "./App.tsx";
import AirSwapLogo from "./assets/airswap-logo.svg";
import "./index.css";
import { isPlainObject } from "./utils/isPlainObject.ts";

import { infuraProvider } from "wagmi/providers/infura";
import { publicProvider } from "wagmi/providers/public";

// Fonts:
import "@fontsource/dm-mono/400.css";
import "@fontsource/dm-mono/500.css";
Expand All @@ -30,13 +32,14 @@ if (!window.Buffer) {
const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, goerli, avalanche, bsc, polygon],
[
jsonRpcProvider({
rpc: () => ({
http: "http://localhost:8545",
}),
}),
// infuraProvider({ apiKey: import.meta.env.VITE_INFURA_API_KEY || "" }),
// publicProvider(),
// uncomment to use local node.
// jsonRpcProvider({
// rpc: () => ({
// http: "http://localhost:8545",
// }),
// }),
infuraProvider({ apiKey: import.meta.env.VITE_INFURA_API_KEY || "" }),
publicProvider(),
],
{
batch: {
Expand Down

0 comments on commit 764545c

Please sign in to comment.