|
|
@ -835,7 +835,8 @@ export default class MetamaskController extends EventEmitter { |
|
|
|
this.gasFeeController, |
|
|
|
this.gasFeeController, |
|
|
|
), |
|
|
|
), |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.smartTransactionsController = new SmartTransactionsController({ |
|
|
|
this.smartTransactionsController = new SmartTransactionsController( |
|
|
|
|
|
|
|
{ |
|
|
|
onNetworkStateChange: this.networkController.store.subscribe.bind( |
|
|
|
onNetworkStateChange: this.networkController.store.subscribe.bind( |
|
|
|
this.networkController.store, |
|
|
|
this.networkController.store, |
|
|
|
), |
|
|
|
), |
|
|
@ -852,7 +853,10 @@ export default class MetamaskController extends EventEmitter { |
|
|
|
trackMetaMetricsEvent: this.metaMetricsController.trackEvent.bind( |
|
|
|
trackMetaMetricsEvent: this.metaMetricsController.trackEvent.bind( |
|
|
|
this.metaMetricsController, |
|
|
|
this.metaMetricsController, |
|
|
|
), |
|
|
|
), |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
undefined, |
|
|
|
|
|
|
|
initState.SmartTransactionsController, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// ensure accountTracker updates balances after network change
|
|
|
|
// ensure accountTracker updates balances after network change
|
|
|
|
this.networkController.on(NETWORK_EVENTS.NETWORK_DID_CHANGE, () => { |
|
|
|
this.networkController.on(NETWORK_EVENTS.NETWORK_DID_CHANGE, () => { |
|
|
|