File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
packages/indexer-common/src/indexing-fees Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ const setup = async () => {
104
104
metrics ,
105
105
)
106
106
dipsCollector = network . dipsCollector !
107
+ }
108
+
109
+ const setupEach = async ( ) => {
110
+ sequelize = await sequelize . sync ( { force : true } )
107
111
const indexerManagementClient = await createIndexerManagementClient ( {
108
112
models : managementModels ,
109
113
graphNode,
@@ -123,10 +127,6 @@ const setup = async () => {
123
127
logger . debug ( JSON . stringify ( network . specification , null , 2 ) )
124
128
}
125
129
126
- const setupEach = async ( ) => {
127
- sequelize = await sequelize . sync ( { force : true } )
128
- }
129
-
130
130
const teardownEach = async ( ) => {
131
131
// Clear out query fee model tables
132
132
await queryFeeModels . allocationReceipts . truncate ( { cascade : true } )
@@ -471,6 +471,7 @@ describe('DipsCollector', () => {
471
471
tapReceipt : Buffer . from ( '1234' , 'hex' ) ,
472
472
} )
473
473
; ( decodeTapReceipt as jest . Mock ) . mockImplementation ( ( ) => {
474
+ logger . info ( 'MOCK Decoding TAP receipt' )
474
475
return {
475
476
allocation_id : toAddress ( testAllocationId ) ,
476
477
signer_address : toAddress ( '0xabcd56df41234949a75a6693c77834c00b8abbbb' ) ,
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ export class DipsCollector {
257
257
this . wallet ,
258
258
)
259
259
try {
260
- this . logger . debug ( `Collecting payment for agreement ${ agreement . id } ` )
260
+ this . logger . info ( `Collecting payment for agreement ${ agreement . id } ` )
261
261
const response = await this . gatewayDipsServiceClient . CollectPayment ( {
262
262
version : 1 ,
263
263
signedCollection : collection ,
@@ -267,7 +267,7 @@ export class DipsCollector {
267
267
throw new Error ( 'TapCollector not initialized' )
268
268
}
269
269
// Store the tap receipt in the database
270
- this . logger . debug ( `Decoding TAP receipt for agreement` )
270
+ this . logger . info ( `Decoding TAP receipt for agreement` )
271
271
const tapReceipt = decodeTapReceipt (
272
272
response . tapReceipt ,
273
273
this . tapCollector ?. tapContracts . tapVerifier . address ,
You can’t perform that action at this time.
0 commit comments