Skip to content

Commit

Permalink
Add getBlockByHash method in graph-node test util indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
nikugogoi committed Jul 3, 2024
1 parent 0330e24 commit 4f3911f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/graph-node/test/utils/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlockProgressInterface[]> {
assert(height);
assert(isPruned);
Expand Down

0 comments on commit 4f3911f

Please sign in to comment.