From c48293af7ac22aed5dfe6b11bc9c24a8c5920fdb Mon Sep 17 00:00:00 2001 From: Radha <86818441+DrW3RK@users.noreply.github.com> Date: Mon, 27 Feb 2023 15:34:01 +0100 Subject: [PATCH] Add Westmint Metadata to the Explorer (#4514) * Add Westmint Metadata to the Explorer * minor fix --- components/Metadata.jsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/components/Metadata.jsx b/components/Metadata.jsx index 0ae7d8b22bc0..69a2d1664e16 100644 --- a/components/Metadata.jsx +++ b/components/Metadata.jsx @@ -8,12 +8,13 @@ const PolkadotJSVersion = Packages.devDependencies["@polkadot/api"].substring(1) // Chains that will appear in the dropdown selection menu (add new parachains here) const Networks = [ - { name: "polkadot", rpc: "wss://rpc.polkadot.io" }, - { name: "kusama", rpc: "wss://kusama-rpc.polkadot.io" }, - { name: "statemine", rpc: "wss://statemine-rpc.polkadot.io" }, - { name: "statemint", rpc: "wss://statemint-rpc.polkadot.io" }, - { name: "westend", rpc: "wss://westend-rpc.polkadot.io" }, - { name: "rococo", rpc: "wss://rococo-rpc.polkadot.io" }, + { name: "Polkadot", rpc: "wss://rpc.polkadot.io" }, + { name: "Kusama", rpc: "wss://kusama-rpc.polkadot.io" }, + { name: "Westend", rpc: "wss://westend-rpc.polkadot.io" }, + { name: "Statemint", rpc: "wss://statemint-rpc.polkadot.io" }, + { name: "Statemine", rpc: "wss://statemine-rpc.polkadot.io" }, + { name: "Westmint", rpc: "wss://westmint-rpc.polkadot.io" }, + { name: "Rococo", rpc: "wss://rococo-rpc.polkadot.io" }, ]; // Track all top-level containers for expand/collapse all functionality @@ -28,8 +29,8 @@ export default function Metadata({ version }) { useEffect(async () => { // Load default network - let defaultNetwork = "polkadot"; - if (document.title === "Metadata Explorer · Guide") { defaultNetwork = "kusama"; } + let defaultNetwork = "Polkadot"; + if (document.title === "Metadata Explorer · Guide") { defaultNetwork = "Kusama"; } const network = Networks.find(network => { return network.name === defaultNetwork }); const wsUrl = network.rpc; @@ -508,4 +509,4 @@ const LoadingStatus = { display: "none" }; const TreeControl = { margin: "0px", color: "#e6007a", cursor: "pointer" }; const SearchStyle = { border: "1px solid #e6007a", width: "400px", height: "40px", fontSize: "16px", textAlign: "center", margin: "1px" } const TopLevel = { fontSize: "18px" } -const SecondLevel = { paddingLeft: "16px" } \ No newline at end of file +const SecondLevel = { paddingLeft: "16px" }