diff --git a/src/background/controller/provider/controller.ts b/src/background/controller/provider/controller.ts index 64645a4a72f..8062dac31cf 100644 --- a/src/background/controller/provider/controller.ts +++ b/src/background/controller/provider/controller.ts @@ -604,6 +604,7 @@ class ProviderController extends BaseController { // errMsg // ); // transactionHistoryService.removeSigningTx(signingTxId!); + notificationService.setStatsData(statsData); throw new Error(errMsg); }; // const onTransactionSubmitted = (hash: string) => { @@ -784,6 +785,7 @@ class ProviderController extends BaseController { onTransactionSubmitFailed(new Error('Submit tx failed')); } else { onTransactionCreated({ hash, reqId, pushType }); + notificationService.setStatsData(statsData); } }