Skip to content

Commit

Permalink
Merge pull request #10 from ensdomains/fix/change-rpc
Browse files Browse the repository at this point in the history
fix: change rpc
  • Loading branch information
TateB authored Dec 19, 2024
2 parents be236c4 + d73f8e9 commit 537ccf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
4 changes: 2 additions & 2 deletions src/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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),
},
});

Expand Down

0 comments on commit 537ccf5

Please sign in to comment.