Skip to content

Commit

Permalink
fix lastBlock computation
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Feb 9, 2024
1 parent 1b87bb6 commit c062816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/paima-funnel/src/funnels/evm/funnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class EvmFunnel extends BaseFunnel implements ChainFunnel {
const block = await this.sharedData.web3.eth.getBlock(chainData[0].blockNumber - 1);

const ts = Number(block.timestamp);
cachedState.lastBlock = await findBlockByTimestamp(this.web3, ts);
cachedState.lastBlock = (await findBlockByTimestamp(this.web3, ts)) - 1;
}
}

Expand Down

0 comments on commit c062816

Please sign in to comment.