Summary
I refactored the common step between the two validation functions in network-form.component.js I added invalidBlockExplorerURL error message and used it
Details
Contribution URL: https://github.com/MetaMask/metamask-extension/pull/7187
__ __ ___ / /_/ / ___ _______ __ ____ _ / -_) __/ _ \/ -_) __/ -_) // / ' \ \__/\__/_//_/\__/_/ \__/\_,_/_/_/_/ __ _ __ __ __ _______ ___ / /_____(_) / __ __/ /_/ / ___ ___ / __/ _ \/ _ \/ __/ __/ / _ \/ // / __/ _ \/ _ \/ _ \ \__/\___/_//_/\__/_/ /_/_.__/\_,_/\__/_//_/\___/_//_/
I refactored the common step between the two validation functions in network-form.component.js I added invalidBlockExplorerURL error message and used it
Contribution URL: https://github.com/MetaMask/metamask-extension/pull/7187