mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
fix cancel reason event for signatures (#19286)
This commit is contained in:
parent
9ea6f8ee12
commit
9375e3810f
@ -1216,16 +1216,19 @@ export default class MetamaskController extends EventEmitter {
|
||||
this.networkController.store.getState().providerConfig.chainId,
|
||||
});
|
||||
|
||||
this.signatureController.hub.on('cancelWithReason', (message, reason) => {
|
||||
this.metaMetricsController.trackEvent({
|
||||
event: reason,
|
||||
category: MetaMetricsEventCategory.Transactions,
|
||||
properties: {
|
||||
action: 'Sign Request',
|
||||
type: message.type,
|
||||
},
|
||||
});
|
||||
});
|
||||
this.signatureController.hub.on(
|
||||
'cancelWithReason',
|
||||
({ message, reason }) => {
|
||||
this.metaMetricsController.trackEvent({
|
||||
event: reason,
|
||||
category: MetaMetricsEventCategory.Transactions,
|
||||
properties: {
|
||||
action: 'Sign Request',
|
||||
type: message.type,
|
||||
},
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
this.swapsController = new SwapsController({
|
||||
getBufferedGasLimit: this.txController.txGasUtil.getBufferedGasLimit.bind(
|
||||
|
Loading…
Reference in New Issue
Block a user