From 21a086d395bbc87bf66ffb9040e1d1e236f9bdac Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Sat, 3 Jul 2021 23:02:04 -0300 Subject: [PATCH] Display erigon node url at homepage --- src/Home.tsx | 4 ++++ src/ethersconfig.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Home.tsx b/src/Home.tsx index 08f1dc8..82c3cdb 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -4,6 +4,7 @@ import { ethers } from "ethers"; import Logo from "./Logo"; import Timestamp from "./components/Timestamp"; import { useLatestBlock } from "./useLatestBlock"; +import { ERIGON_NODE } from "./ethersconfig"; const Home: React.FC = () => { const [search, setSearch] = useState(); @@ -63,6 +64,9 @@ const Home: React.FC = () => { )} + + Using Erigon node at {ERIGON_NODE} + diff --git a/src/ethersconfig.ts b/src/ethersconfig.ts index e0a9fd5..6b24d6d 100644 --- a/src/ethersconfig.ts +++ b/src/ethersconfig.ts @@ -1,6 +1,8 @@ import { ethers } from "ethers"; +export const ERIGON_NODE = "http://127.0.0.1:8545"; + export const provider = new ethers.providers.JsonRpcProvider( - "http://127.0.0.1:8545", + ERIGON_NODE, "mainnet" );