Remove saveBlockAndFetchEvents method callback pattern (#244)

* Remove saveBlockAndFetchEvents method callback pattern

* Accomodate change in code generator

Co-authored-by: prathamesh0 <prathamesh.musale0@gmail.com>
This commit is contained in:
2022-11-21 15:54:28 +04:00
committed by GitHub
co-authored by prathamesh
parent 1e639c1af3
commit 06e5c62fa8
9 changed files with 10 additions and 16 deletions
@@ -545,7 +545,7 @@ export class Indexer implements IndexerInterface {
}
async saveBlockAndFetchEvents (block: DeepPartial<BlockProgress>): Promise<[BlockProgress, DeepPartial<Event>[]]> {
return this._baseIndexer.saveBlockAndFetchEvents(block, this._saveBlockAndFetchEvents.bind(this));
return this._saveBlockAndFetchEvents(block);
}
async getBlockEvents (blockHash: string, where: Where, queryOptions: QueryOptions): Promise<Array<Event>> {