diff --git a/ui/pages/settings/networks-tab/networks-form/networks-form.js b/ui/pages/settings/networks-tab/networks-form/networks-form.js index 1aa7d9304047..6d74e2a67179 100644 --- a/ui/pages/settings/networks-tab/networks-form/networks-form.js +++ b/ui/pages/settings/networks-tab/networks-form/networks-form.js @@ -762,7 +762,7 @@ const NetworksForm = ({ dataTestId="network-form-network-name" /> {window.metamaskFeatureFlags?.networkMenuRedesign ? ( - + ) : ( { +export const RpcUrlEditor = ({ currentRpcUrl }: { currentRpcUrl: string }) => { // TODO: real endpoints - const dummyRpcEndpoints = [ - 'https://palmn-mainnet.infura.io', - 'https://palm-mainnet.public.blastapi.io', - 'https://tatum.io/v3/blockchain/node/palm', + const dummyRpcUrls = [ + currentRpcUrl, + 'https://dummy-mainnet.public.blastapi.io', + 'https://dummy.io/v3/blockchain/node/dummy', ]; const t = useI18nContext(); const rpcDropdown = useRef(null); const [isOpen, setIsOpen] = useState(false); - const [currentRpcEndpoint, setCurrentRpcEndpoint] = useState( - dummyRpcEndpoints[0], - ); + const [currentRpcEndpoint, setCurrentRpcEndpoint] = useState(currentRpcUrl); return ( <> @@ -74,7 +72,7 @@ export const RpcUrlEditor = () => { position={PopoverPosition.Bottom} isOpen={isOpen} > - {dummyRpcEndpoints.map((rpcEndpoint) => ( + {dummyRpcUrls.map((rpcEndpoint) => (