Update GQL and getBlock API usage (#210)

* Update getLogs and getBlockWithTransactions usage to add block number arg

* Update getFullTransaction usage to add block number arg
This commit is contained in:
prathamesh0
2022-11-03 14:14:58 +05:30
committed by GitHub
parent 52c42f4e84
commit 2517f110ea
12 changed files with 35 additions and 26 deletions
@@ -656,8 +656,9 @@ export class Indexer implements IndexerInterface {
parentHash
}: DeepPartial<BlockProgress>): Promise<[BlockProgress, DeepPartial<Event>[]]> {
assert(blockHash);
assert(blockNumber);
const dbEvents = await this._baseIndexer.fetchEvents(blockHash, this.parseEventNameAndArgs.bind(this));
const dbEvents = await this._baseIndexer.fetchEvents(blockHash, blockNumber, this.parseEventNameAndArgs.bind(this));
const dbTx = await this._db.createTransactionRunner();
try {