Skip to content

Commit

Permalink
Merge branch 'develop' into fix-experimental-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi authored Nov 22, 2023
2 parents ed1ff12 + a9398f3 commit e223b71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1561,9 +1561,12 @@ export default class MetamaskController extends EventEmitter {
this.txController.txGasUtil,
),
networkController: this.networkController,
// This handler is misnamed. We must listen to networkDidChange
// to ensure the network provider has been set by the time we
// try to use it in this controller
onNetworkStateChange: networkControllerMessenger.subscribe.bind(
networkControllerMessenger,
'NetworkController:stateChange',
'NetworkController:networkDidChange',
),
provider: this.provider,
getProviderConfig: () => this.networkController.state.providerConfig,
Expand Down

0 comments on commit e223b71

Please sign in to comment.