File tree 2 files changed +13
-1
lines changed 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,18 @@ export type SmartTransactionsControllerSmartTransactionEvent = {
149
149
payload : [ SmartTransaction ] ;
150
150
} ;
151
151
152
+ export type SmartTransactionsControllerSmartTransactionConfirmationDoneEvent = {
153
+ type : 'SmartTransactionsController:smartTransactionConfirmationDone' ;
154
+ payload : [ SmartTransaction ] ;
155
+ } ;
156
+
152
157
/**
153
158
* The events that {@link SmartTransactionsController} can emit.
154
159
*/
155
160
export type SmartTransactionsControllerEvents =
156
161
| SmartTransactionsControllerStateChangeEvent
157
- | SmartTransactionsControllerSmartTransactionEvent ;
162
+ | SmartTransactionsControllerSmartTransactionEvent
163
+ | SmartTransactionsControllerSmartTransactionConfirmationDoneEvent ;
158
164
159
165
export type AllowedEvents = NetworkControllerStateChangeEvent ;
160
166
@@ -682,6 +688,11 @@ export default class SmartTransactionsController extends StaticIntervalPollingCo
682
688
category : MetaMetricsEventCategory . Transactions ,
683
689
} ) ;
684
690
console . error ( 'confirm error' , error ) ;
691
+ } finally {
692
+ this . messagingSystem . publish (
693
+ `SmartTransactionsController:smartTransactionConfirmationDone` ,
694
+ smartTransaction ,
695
+ ) ;
685
696
}
686
697
}
687
698
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ export type {
6
6
SmartTransactionsControllerActions ,
7
7
SmartTransactionsControllerStateChangeEvent ,
8
8
SmartTransactionsControllerSmartTransactionEvent ,
9
+ SmartTransactionsControllerSmartTransactionConfirmationDoneEvent ,
9
10
SmartTransactionsControllerEvents ,
10
11
} from './SmartTransactionsController' ;
You can’t perform that action at this time.
0 commit comments