File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,13 @@ export default class SmartTransactionsController extends StaticIntervalPollingCo
394
394
return ;
395
395
}
396
396
397
+ // We have to emit this event here, because then a txHash is returned to the TransactionController once it's available
398
+ // and the #doesTransactionNeedConfirmation function will work properly, since it will find the txHash in the regular transactions list.
399
+ this . eventEmitter . emit (
400
+ `${ smartTransaction . uuid } :smartTransaction` ,
401
+ smartTransaction ,
402
+ ) ;
403
+
397
404
if (
398
405
( smartTransaction . status === SmartTransactionStatuses . SUCCESS ||
399
406
smartTransaction . status === SmartTransactionStatuses . REVERTED ) &&
@@ -426,11 +433,6 @@ export default class SmartTransactionsController extends StaticIntervalPollingCo
426
433
} ,
427
434
} ) ;
428
435
}
429
-
430
- this . eventEmitter . emit (
431
- `${ smartTransaction . uuid } :smartTransaction` ,
432
- smartTransaction ,
433
- ) ;
434
436
}
435
437
436
438
async updateSmartTransactions ( {
You can’t perform that action at this time.
0 commit comments