Skip to content

Commit

Permalink
listen for the networkController instead of preferencesController
Browse files Browse the repository at this point in the history
  • Loading branch information
zone-live committed Jul 20, 2023
1 parent 6ce80fe commit 45e94d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/controllers/mmi-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,11 @@ export default class MMIController extends EventEmitter {
const getAccountDetails = (address) =>
this.custodyController.getAccountDetails(address);
const extensionId = this.extension.runtime.id;

const { networkConfigurations } = this.networkController.state;

const networks = [
...this.preferencesController.getRpcMethodPreferences(),
...networkConfigurations,
{ chainId: CHAIN_IDS.MAINNET },
{ chainId: CHAIN_IDS.GOERLI },
];
Expand Down

0 comments on commit 45e94d5

Please sign in to comment.