diff --git a/src/constants.ts b/src/constants.ts index 5252ce0..98a5a9d 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -2,5 +2,6 @@ export const RECLAIM_SUBGRAPH_URI = import.meta.env.VITE_RECLAIM_GRAPH_URI || "http://127.0.0.1:8000/subgraphs/name/makoto/ens-reclaim-deposit-subgraph"; export const ENS_SUBGRAPH_URI = import.meta.env.VITE_ENS_GRAPH_URI || "http://127.0.0.1:8000/subgraphs/name/graphprotocol/ens"; +export const MAINNET_RPC_URL = import.meta.env.VITE_MAINNET_RPC_URL || "https://web3.euc.li/v1/mainnet"; export const REGISTRAR_ADDRESS = "0x6090a6e47849629b7245dfa1ca21d94cd15878ef" as const; export const REGISTRY_ADDRESS = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"; diff --git a/src/wagmi.ts b/src/wagmi.ts index d63b2b0..7451c18 100644 --- a/src/wagmi.ts +++ b/src/wagmi.ts @@ -2,7 +2,7 @@ import { type CheckedChainWithEns, addresses } from "@ensdomains/ensjs/contracts import { http, createConfig } from "wagmi"; import { mainnet } from "wagmi/chains"; import { injected } from "wagmi/connectors"; -import { ENS_SUBGRAPH_URI } from "./constants"; +import { ENS_SUBGRAPH_URI, MAINNET_RPC_URL } from "./constants"; const subgraphs = { 1: { @@ -27,7 +27,7 @@ export const config = createConfig({ chains: [mainnetWithEns], connectors: [injected()], transports: { - [mainnet.id]: http("https://web3.euc.li/v1/mainnet"), + [mainnet.id]: http(MAINNET_RPC_URL), }, });