@@ -287,6 +287,7 @@ const defaultState = {
287287      [ CHAIN_IDS . ETHEREUM ] : [ ] , 
288288    } , 
289289    userOptIn : undefined , 
290+     userOptInV2 : undefined , 
290291    fees : { 
291292      approvalTxFees : undefined , 
292293      tradeTxFees : undefined , 
@@ -496,15 +497,15 @@ describe('SmartTransactionsController', () => {
496497    it ( 'sets optIn state' ,  ( )  =>  { 
497498      smartTransactionsController . setOptInState ( true ) ; 
498499      expect ( 
499-         smartTransactionsController . state . smartTransactionsState . userOptIn , 
500+         smartTransactionsController . state . smartTransactionsState . userOptInV2 , 
500501      ) . toBe ( true ) ; 
501502      smartTransactionsController . setOptInState ( false ) ; 
502503      expect ( 
503-         smartTransactionsController . state . smartTransactionsState . userOptIn , 
504+         smartTransactionsController . state . smartTransactionsState . userOptInV2 , 
504505      ) . toBe ( false ) ; 
505506      smartTransactionsController . setOptInState ( undefined ) ; 
506507      expect ( 
507-         smartTransactionsController . state . smartTransactionsState . userOptIn , 
508+         smartTransactionsController . state . smartTransactionsState . userOptInV2 , 
508509      ) . toBeUndefined ( ) ; 
509510    } ) ; 
510511  } ) ; 
@@ -611,6 +612,7 @@ describe('SmartTransactionsController', () => {
611612            [ CHAIN_IDS . ETHEREUM ] : [ pendingTransaction ] , 
612613          } , 
613614          userOptIn : undefined , 
615+           userOptInV2 : undefined , 
614616          fees : { 
615617            approvalTxFees : undefined , 
616618            tradeTxFees : undefined , 
@@ -666,6 +668,7 @@ describe('SmartTransactionsController', () => {
666668            ] , 
667669          } , 
668670          userOptIn : undefined , 
671+           userOptInV2 : undefined , 
669672          fees : { 
670673            approvalTxFees : undefined , 
671674            tradeTxFees : undefined , 
0 commit comments