mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Set up STX controller state (#13843)
* persist stx controller state * Pass STX controller state as the 3rd param * Trigger Build Co-authored-by: Dan Miller <danjm.com@gmail.com>
This commit is contained in:
parent
261b066fc0
commit
3327c5c797
@ -837,7 +837,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,
|
||||||
),
|
),
|
||||||
@ -854,7 +855,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, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user