Skip to content

Commit aae03f5

Browse files
committed
fix: linting errors
1 parent 47a3fae commit aae03f5

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function createDipsManager(
168168
models: IndexerManagementModels,
169169
consumer: PendingRcaConsumer,
170170
): DipsManager {
171+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
171172
const dm = new DipsManager(logger, models, network, {} as any, null)
172173
// eslint-disable-next-line @typescript-eslint/no-explicit-any
173174
;(dm as any).pendingRcaConsumer = consumer
@@ -246,6 +247,7 @@ describe('DipsManager.acceptPendingProposals', () => {
246247
test('returns early when pendingRcaConsumer is null', async () => {
247248
const models = createMockModels()
248249
const network = createMockNetwork()
250+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
249251
const dm = new DipsManager(logger, models, network, {} as any, null)
250252

251253
// Should not throw

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,9 @@ export class DipsManager {
552552
blockNumber: number,
553553
logger: Logger,
554554
): Promise<void> {
555-
const agreementData =
556-
await this.network.contracts.RecurringCollector.getAgreement(agreement.id)
555+
const agreementData = await this.network.contracts.RecurringCollector.getAgreement(
556+
agreement.id,
557+
)
557558

558559
const [isCollectable, collectionSeconds, reason] =
559560
await this.network.contracts.RecurringCollector.getCollectionInfo(agreementData)
@@ -571,12 +572,8 @@ export class DipsManager {
571572
const entities = entityCounts[0]
572573

573574
const recentBlock = blockNumber - 10
574-
const { network: networkAlias } =
575-
await this.graphNode.subgraphFeatures(deploymentId)
576-
const blockHash = await this.graphNode.blockHashFromNumber(
577-
networkAlias!,
578-
recentBlock,
579-
)
575+
const { network: networkAlias } = await this.graphNode.subgraphFeatures(deploymentId)
576+
const blockHash = await this.graphNode.blockHashFromNumber(networkAlias!, recentBlock)
580577
const poi = await this.graphNode.proofOfIndexing(
581578
deploymentId,
582579
{ number: recentBlock, hash: blockHash },

0 commit comments

Comments
 (0)