diff --git a/app/scripts/controllers/mmi-controller.js b/app/scripts/controllers/mmi-controller.js index 04694b716fde..5b80b614c3ae 100644 --- a/app/scripts/controllers/mmi-controller.js +++ b/app/scripts/controllers/mmi-controller.js @@ -542,8 +542,13 @@ export default class MMIController extends EventEmitter { const getAccountDetails = (address) => this.custodyController.getAccountDetails(address); const extensionId = this.extension.runtime.id; + + const { networkConfigurations: networkConfigurationsById } = + this.networkController.state; + const networkConfigurations = Object.values(networkConfigurationsById); + const networks = [ - ...this.preferencesController.getRpcMethodPreferences(), + ...networkConfigurations, { chainId: CHAIN_IDS.MAINNET }, { chainId: CHAIN_IDS.GOERLI }, ];