From 4f3911fb311f647dd43bd7b7dafc9ec17a6c455b Mon Sep 17 00:00:00 2001 From: Nabarun Date: Wed, 3 Jul 2024 15:10:56 +0530 Subject: [PATCH] Add getBlockByHash method in graph-node test util indexer --- packages/graph-node/test/utils/indexer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/graph-node/test/utils/indexer.ts b/packages/graph-node/test/utils/indexer.ts index 660aba1e..e31c3b56 100644 --- a/packages/graph-node/test/utils/indexer.ts +++ b/packages/graph-node/test/utils/indexer.ts @@ -95,6 +95,10 @@ export class Indexer implements IndexerInterface { return undefined; } + async getBlockByHash (blockHash?: string): Promise<{ block: any }> { + return { block: undefined }; + } + async getBlocksAtHeight (height: number, isPruned: boolean): Promise { assert(height); assert(isPruned);