@@ -119,6 +119,8 @@ const setup = async () => {
119
119
120
120
const operator = new Operator ( logger , indexerManagementClient , networkSpecWithDips )
121
121
await operator . ensureGlobalIndexingRule ( )
122
+ logger . debug ( 'Ensured global indexing rule' )
123
+ logger . debug ( JSON . stringify ( network . specification , null , 2 ) )
122
124
}
123
125
124
126
const setupEach = async ( ) => {
@@ -468,17 +470,19 @@ describe('DipsCollector', () => {
468
470
status : CollectPaymentStatus . ACCEPT ,
469
471
tapReceipt : Buffer . from ( '1234' , 'hex' ) ,
470
472
} )
471
- ; ( decodeTapReceipt as jest . Mock ) . mockReturnValue ( {
472
- allocation_id : toAddress ( testAllocationId ) ,
473
- signer_address : toAddress ( '0xabcd56df41234949a75a6693c77834c00b8abbbb' ) ,
474
- signature : Buffer . from ( '1234' , 'hex' ) ,
475
- timestamp_ns : 1234567890 ,
476
- nonce : 1 ,
477
- value : '1000' ,
473
+ ; ( decodeTapReceipt as jest . Mock ) . mockImplementation ( ( ) => {
474
+ return {
475
+ allocation_id : toAddress ( testAllocationId ) ,
476
+ signer_address : toAddress ( '0xabcd56df41234949a75a6693c77834c00b8abbbb' ) ,
477
+ signature : Buffer . from ( '1234' , 'hex' ) ,
478
+ timestamp_ns : 1234567890 ,
479
+ nonce : 1 ,
480
+ value : '1000' ,
481
+ }
482
+ } )
483
+ ; ( getEscrowSenderForSigner as jest . Mock ) . mockImplementation ( ( ) => {
484
+ return toAddress ( '0x123456df40c29949a75a6693c77834c00b8a5678' )
478
485
} )
479
- ; ( getEscrowSenderForSigner as jest . Mock ) . mockResolvedValue (
480
- toAddress ( '0x123456df40c29949a75a6693c77834c00b8a5678' ) ,
481
- )
482
486
483
487
await dipsCollector . tryCollectPayment ( agreement )
484
488
0 commit comments