From fc226f63156c1be35b268375b1077d417c965f10 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Sat, 2 Dec 2023 15:48:32 +0100 Subject: [PATCH] Rename GetChainId to ChainId --- docs/build/getting-started/networks-endpoints.mdx | 6 +++--- theme/src/theme/{GetChainId => ChainId}/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename theme/src/theme/{GetChainId => ChainId}/index.tsx (82%) diff --git a/docs/build/getting-started/networks-endpoints.mdx b/docs/build/getting-started/networks-endpoints.mdx index 2625d15dc99..e7ba8a4132e 100644 --- a/docs/build/getting-started/networks-endpoints.mdx +++ b/docs/build/getting-started/networks-endpoints.mdx @@ -14,7 +14,7 @@ keywords: --- import { AddToMetaMaskButton, EVMNetworks } from '@theme/AddToMetaMaskButton'; -import { GetChainId } from '@theme/GetChainId'; +import { ChainId } from '@theme/ChainId'; # Networks & Endpoints @@ -58,7 +58,7 @@ Mainnet. | Base Token | Protocol | Chain ID | RPC URL | Explorer | | ------------- | --------- | -------- | ----------------------------------------------------------------------------- | ------------------------------------ | -| Shimmer Token | ISC / EVM | | https://json-rpc.evm.shimmer.network or wss://ws.json-rpc.evm.shimmer.network | https://explorer.evm.shimmer.network | +| Shimmer Token | ISC / EVM | | https://json-rpc.evm.shimmer.network or wss://ws.json-rpc.evm.shimmer.network | https://explorer.evm.shimmer.network | ## Public Testnet @@ -87,7 +87,7 @@ This network is subject to occasional resets (no data retention) which are usual | Base Token | Protocol | Chain ID | RPC URL | Faucet | Explorer | | ------------------------- | --------- | -------- | -------------------------------------------- | ------------------------------------------ | -------------------------------------------- | -| Testnet Tokens (no value) | ISC / EVM | | https://json-rpc.evm.testnet.shimmer.network | https://evm-faucet.testnet.shimmer.network | https://explorer.evm.testnet.shimmer.network | +| Testnet Tokens (no value) | ISC / EVM | | https://json-rpc.evm.testnet.shimmer.network | https://evm-faucet.testnet.shimmer.network | https://explorer.evm.testnet.shimmer.network | ## DevNet diff --git a/theme/src/theme/GetChainId/index.tsx b/theme/src/theme/ChainId/index.tsx similarity index 82% rename from theme/src/theme/GetChainId/index.tsx rename to theme/src/theme/ChainId/index.tsx index 7fc3b73e32f..e77396f980a 100644 --- a/theme/src/theme/GetChainId/index.tsx +++ b/theme/src/theme/ChainId/index.tsx @@ -1,11 +1,11 @@ import { useEffect, useState } from 'react'; import { Web3 } from 'web3'; -interface GetChainIdProps { +interface ChainIdProps { url: string; } -export function GetChainId(props: GetChainIdProps) { +export function ChainId(props: ChainIdProps) { const [value, setValue] = useState(null); useEffect(() => {