1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove localhost from default network list (#12790)

* Remove localhost from default network list

* Update e2e fixtures
This commit is contained in:
Dan J Miller 2021-11-22 19:02:03 -03:30 committed by GitHub
parent 42fea3d323
commit d296c517db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 14 deletions

View File

@ -84,7 +84,7 @@ describe('Stores custom RPC history', function () {
await rpcUrlInput.clear(); await rpcUrlInput.clear();
await rpcUrlInput.sendKeys(duplicateRpcUrl); await rpcUrlInput.sendKeys(duplicateRpcUrl);
await driver.findElement({ await driver.findElement({
text: 'This URL is currently used by the localhost network.', text: 'This URL is currently used by the Localhost 8545 network.',
tag: 'h6', tag: 'h6',
}); });
}, },
@ -123,7 +123,8 @@ describe('Stores custom RPC history', function () {
await chainIdInput.clear(); await chainIdInput.clear();
await chainIdInput.sendKeys(duplicateChainId); await chainIdInput.sendKeys(duplicateChainId);
await driver.findElement({ await driver.findElement({
text: 'This Chain ID is currently used by the localhost network.', text:
'This Chain ID is currently used by the Localhost 8545 network.',
tag: 'h6', tag: 'h6',
}); });
}, },

View File

@ -5,9 +5,6 @@ import {
KOVAN, KOVAN,
KOVAN_CHAIN_ID, KOVAN_CHAIN_ID,
KOVAN_RPC_URL, KOVAN_RPC_URL,
LOCALHOST,
LOCALHOST_CHAIN_ID,
LOCALHOST_RPC_URL,
MAINNET, MAINNET,
MAINNET_CHAIN_ID, MAINNET_CHAIN_ID,
MAINNET_RPC_URL, MAINNET_RPC_URL,
@ -65,15 +62,6 @@ const defaultNetworksData = [
ticker: 'ETH', ticker: 'ETH',
blockExplorerUrl: 'https://kovan.etherscan.io', blockExplorerUrl: 'https://kovan.etherscan.io',
}, },
{
labelKey: LOCALHOST,
iconColor: '#29B6AF',
providerType: LOCALHOST,
rpcUrl: LOCALHOST_RPC_URL,
chainId: LOCALHOST_CHAIN_ID,
ticker: 'ETH',
blockExplorerUrl: '',
},
]; ];
export { defaultNetworksData }; export { defaultNetworksData };