@@ -3,7 +3,10 @@ import configureMockStore from 'redux-mock-store';
3
3
import thunk from 'redux-thunk' ;
4
4
import { Hex } from '@metamask/utils' ;
5
5
import { toHex } from '@metamask/controller-utils' ;
6
- import { TransactionType } from '@metamask/transaction-controller' ;
6
+ import {
7
+ NestedTransactionMetadata ,
8
+ TransactionType ,
9
+ } from '@metamask/transaction-controller' ;
7
10
import {
8
11
getMockConfirmState ,
9
12
getMockConfirmStateForTransaction ,
@@ -179,8 +182,22 @@ describe('<TransactionDetails />', () => {
179
182
180
183
describe ( 'RecipientRow' , ( ) => {
181
184
it ( 'should not be displayed when the transaction is a batch transaction' , ( ) => {
185
+ const ADDRESS_MOCK = '0x88aa6343307ec9a652ccddda3646e62b2f1a5125' ;
186
+ const ADDRESS_2_MOCK = '0x1234567890123456789012345678901234567891' ;
182
187
const contractInteraction = genUnapprovedContractInteractionConfirmation ( {
183
- type : TransactionType . batch ,
188
+ address : ADDRESS_MOCK ,
189
+ nestedTransactions : [
190
+ {
191
+ to : ADDRESS_MOCK ,
192
+ data : '0x1' ,
193
+ type : TransactionType . contractInteraction ,
194
+ } ,
195
+ {
196
+ to : ADDRESS_2_MOCK ,
197
+ data : '0x2' ,
198
+ type : TransactionType . contractInteraction ,
199
+ } ,
200
+ ] as NestedTransactionMetadata [ ] ,
184
201
} ) ;
185
202
const state = getMockConfirmStateForTransaction ( contractInteraction , {
186
203
metamask : {
0 commit comments