Skip to content

Commit

Permalink
Pass block number when fetching full block data (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 authored Nov 3, 2022
1 parent 2f9d886 commit aec8e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uni-info-watcher/src/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export class Indexer implements IndexerInterface {
const { __typename: eventName } = event;

if (!this._fullBlock || (this._fullBlock.hash !== block.hash)) {
const { blockHash, blockNumber, timestamp, ...blockData } = await getFullBlock(this._ethClient, this._ethProvider, block.hash);
const { blockHash, blockNumber, timestamp, ...blockData } = await getFullBlock(this._ethClient, this._ethProvider, block.hash, block.number);

this._fullBlock = {
hash: blockHash,
Expand Down

0 comments on commit aec8e7f

Please sign in to comment.