@@ -287,6 +287,7 @@ const defaultState = {
287
287
[ CHAIN_IDS . ETHEREUM ] : [ ] ,
288
288
} ,
289
289
userOptIn : undefined ,
290
+ userOptInV2 : undefined ,
290
291
fees : {
291
292
approvalTxFees : undefined ,
292
293
tradeTxFees : undefined ,
@@ -496,15 +497,15 @@ describe('SmartTransactionsController', () => {
496
497
it ( 'sets optIn state' , ( ) => {
497
498
smartTransactionsController . setOptInState ( true ) ;
498
499
expect (
499
- smartTransactionsController . state . smartTransactionsState . userOptIn ,
500
+ smartTransactionsController . state . smartTransactionsState . userOptInV2 ,
500
501
) . toBe ( true ) ;
501
502
smartTransactionsController . setOptInState ( false ) ;
502
503
expect (
503
- smartTransactionsController . state . smartTransactionsState . userOptIn ,
504
+ smartTransactionsController . state . smartTransactionsState . userOptInV2 ,
504
505
) . toBe ( false ) ;
505
506
smartTransactionsController . setOptInState ( undefined ) ;
506
507
expect (
507
- smartTransactionsController . state . smartTransactionsState . userOptIn ,
508
+ smartTransactionsController . state . smartTransactionsState . userOptInV2 ,
508
509
) . toBeUndefined ( ) ;
509
510
} ) ;
510
511
} ) ;
@@ -611,6 +612,7 @@ describe('SmartTransactionsController', () => {
611
612
[ CHAIN_IDS . ETHEREUM ] : [ pendingTransaction ] ,
612
613
} ,
613
614
userOptIn : undefined ,
615
+ userOptInV2 : undefined ,
614
616
fees : {
615
617
approvalTxFees : undefined ,
616
618
tradeTxFees : undefined ,
@@ -666,6 +668,7 @@ describe('SmartTransactionsController', () => {
666
668
] ,
667
669
} ,
668
670
userOptIn : undefined ,
671
+ userOptInV2 : undefined ,
669
672
fees : {
670
673
approvalTxFees : undefined ,
671
674
tradeTxFees : undefined ,
0 commit comments