Skip to content

Commit 423e6d0

Browse files
committed
fix: foo
1 parent 83d756e commit 423e6d0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

packages/indexer-common/src/indexing-fees/__tests__/dips.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ const setup = async () => {
104104
metrics,
105105
)
106106
dipsCollector = network.dipsCollector!
107+
}
108+
109+
const setupEach = async () => {
110+
sequelize = await sequelize.sync({ force: true })
107111
const indexerManagementClient = await createIndexerManagementClient({
108112
models: managementModels,
109113
graphNode,
@@ -123,10 +127,6 @@ const setup = async () => {
123127
logger.debug(JSON.stringify(network.specification, null, 2))
124128
}
125129

126-
const setupEach = async () => {
127-
sequelize = await sequelize.sync({ force: true })
128-
}
129-
130130
const teardownEach = async () => {
131131
// Clear out query fee model tables
132132
await queryFeeModels.allocationReceipts.truncate({ cascade: true })
@@ -471,6 +471,7 @@ describe('DipsCollector', () => {
471471
tapReceipt: Buffer.from('1234', 'hex'),
472472
})
473473
;(decodeTapReceipt as jest.Mock).mockImplementation(() => {
474+
logger.info('MOCK Decoding TAP receipt')
474475
return {
475476
allocation_id: toAddress(testAllocationId),
476477
signer_address: toAddress('0xabcd56df41234949a75a6693c77834c00b8abbbb'),

packages/indexer-common/src/indexing-fees/dips.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class DipsCollector {
257257
this.wallet,
258258
)
259259
try {
260-
this.logger.debug(`Collecting payment for agreement ${agreement.id}`)
260+
this.logger.info(`Collecting payment for agreement ${agreement.id}`)
261261
const response = await this.gatewayDipsServiceClient.CollectPayment({
262262
version: 1,
263263
signedCollection: collection,
@@ -267,7 +267,7 @@ export class DipsCollector {
267267
throw new Error('TapCollector not initialized')
268268
}
269269
// 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`)
271271
const tapReceipt = decodeTapReceipt(
272272
response.tapReceipt,
273273
this.tapCollector?.tapContracts.tapVerifier.address,

0 commit comments

Comments
 (0)