|
|
@ -33,9 +33,9 @@ export default class TypedMessageManager extends EventEmitter { |
|
|
|
* |
|
|
|
* |
|
|
|
* @param options |
|
|
|
* @param options |
|
|
|
* @param options.getCurrentChainId |
|
|
|
* @param options.getCurrentChainId |
|
|
|
* @param options.metricEvents |
|
|
|
* @param options.metricsEvent |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
constructor({ getCurrentChainId, metricEvents }) { |
|
|
|
constructor({ getCurrentChainId, metricsEvent }) { |
|
|
|
super(); |
|
|
|
super(); |
|
|
|
this._getCurrentChainId = getCurrentChainId; |
|
|
|
this._getCurrentChainId = getCurrentChainId; |
|
|
|
this.memStore = new ObservableStore({ |
|
|
|
this.memStore = new ObservableStore({ |
|
|
@ -43,7 +43,7 @@ export default class TypedMessageManager extends EventEmitter { |
|
|
|
unapprovedTypedMessagesCount: 0, |
|
|
|
unapprovedTypedMessagesCount: 0, |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.messages = []; |
|
|
|
this.messages = []; |
|
|
|
this.metricEvents = metricEvents; |
|
|
|
this.metricsEvent = metricsEvent; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|