this.props.hideNetworkDropdown()}
diff --git a/ui/app/components/app/dropdowns/tests/network-dropdown.test.js b/ui/app/components/app/dropdowns/tests/network-dropdown.test.js
index 6eca49568..750e74bd4 100644
--- a/ui/app/components/app/dropdowns/tests/network-dropdown.test.js
+++ b/ui/app/components/app/dropdowns/tests/network-dropdown.test.js
@@ -66,8 +66,8 @@ describe('Network Dropdown', function () {
)
})
- it('renders 9 DropDownMenuItems ', function () {
- assert.equal(wrapper.find(DropdownMenuItem).length, 9)
+ it('renders 8 DropDownMenuItems ', function () {
+ assert.equal(wrapper.find(DropdownMenuItem).length, 8)
})
it('checks background color for first NetworkDropdownIcon', function () {
@@ -95,12 +95,7 @@ describe('Network Dropdown', function () {
})
it('checks dropdown for frequestRPCList from state', function () {
- assert.equal(wrapper.find(DropdownMenuItem).at(6).text(), '✓http://localhost:7546')
+ assert.equal(wrapper.find(DropdownMenuItem).at(6).text(), '✓http://localhost:7545')
})
-
- it('checks background color for seventh NetworkDropdownIcon', function () {
- assert.equal(wrapper.find(NetworkDropdownIcon).at(6).prop('innerBorder'), '1px solid #9b9b9b')
- })
-
})
})
diff --git a/ui/app/components/app/loading-network-screen/loading-network-screen.component.js b/ui/app/components/app/loading-network-screen/loading-network-screen.component.js
index 9b9b96619..f20916346 100644
--- a/ui/app/components/app/loading-network-screen/loading-network-screen.component.js
+++ b/ui/app/components/app/loading-network-screen/loading-network-screen.component.js
@@ -45,8 +45,6 @@ export default class LoadingNetworkScreen extends PureComponent {
name = this.context.t('connectingToKovan')
} else if (providerName === 'rinkeby') {
name = this.context.t('connectingToRinkeby')
- } else if (providerName === 'localhost') {
- name = this.context.t('connectingToLocalhost')
} else if (providerName === 'goerli') {
name = this.context.t('connectingToGoerli')
} else {
diff --git a/ui/app/components/app/network.js b/ui/app/components/app/network.js
index 97f7c44bb..f66a0182a 100644
--- a/ui/app/components/app/network.js
+++ b/ui/app/components/app/network.js
@@ -153,11 +153,7 @@ export default class Network extends Component {
)
}
- {
- providerName === 'localhost'
- ? t('localhost')
- : providerNick || t('privateNetwork')
- }
+ {providerNick || t('privateNetwork')}
)
diff --git a/ui/app/helpers/utils/util.js b/ui/app/helpers/utils/util.js
index 990cd3f6d..454b73a1f 100644
--- a/ui/app/helpers/utils/util.js
+++ b/ui/app/helpers/utils/util.js
@@ -34,7 +34,7 @@ Object.keys(valueTable).forEach((currency) => {
})
export function isEthNetwork (netId) {
- if (!netId || netId === '1' || netId === '3' || netId === '4' || netId === '42' || netId === '5777') {
+ if (!netId || netId === '1' || netId === '3' || netId === '4' || netId === '42' || netId === '1337') {
return true
}
diff --git a/ui/app/pages/routes/routes.component.js b/ui/app/pages/routes/routes.component.js
index 41578651f..37bb13f40 100644
--- a/ui/app/pages/routes/routes.component.js
+++ b/ui/app/pages/routes/routes.component.js
@@ -315,8 +315,6 @@ export default class Routes extends Component {
return this.context.t('connectingToKovan')
case 'rinkeby':
return this.context.t('connectingToRinkeby')
- case 'localhost':
- return this.context.t('connectingToLocalhost')
case 'goerli':
return this.context.t('connectingToGoerli')
default:
@@ -334,8 +332,6 @@ export default class Routes extends Component {
return this.context.t('kovan')
case 'rinkeby':
return this.context.t('rinkeby')
- case 'localhost':
- return this.context.t('localhost')
case 'goerli':
return this.context.t('goerli')
default:
diff --git a/ui/app/pages/settings/networks-tab/networks-tab.constants.js b/ui/app/pages/settings/networks-tab/networks-tab.constants.js
index a90608bf3..c408aa89b 100644
--- a/ui/app/pages/settings/networks-tab/networks-tab.constants.js
+++ b/ui/app/pages/settings/networks-tab/networks-tab.constants.js
@@ -3,7 +3,6 @@ import {
GOERLI_CHAIN_ID,
KOVAN,
KOVAN_CHAIN_ID,
- LOCALHOST,
MAINNET,
MAINNET_CHAIN_ID,
RINKEBY,
@@ -58,14 +57,6 @@ const defaultNetworksData = [
ticker: 'ETH',
blockExplorerUrl: 'https://etherscan.io',
},
- {
- labelKey: LOCALHOST,
- iconColor: 'white',
- border: '1px solid #6A737D',
- providerType: LOCALHOST,
- rpcUrl: 'http://localhost:8545/',
- blockExplorerUrl: 'https://etherscan.io',
- },
]
export {