Skip to content

Commit

Permalink
Update packages/status-page/src/utils/getNextBlockId.ts
Browse files Browse the repository at this point in the history
Co-authored-by: David <david@taiko.xyz>
  • Loading branch information
cyberhorsey and davidtaikocha authored Apr 24, 2023
1 parent a9a702d commit fffec92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/status-page/src/utils/getNextBlockId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export const getNextBlockId = async (
): Promise<number> => {
const contract: Contract = new Contract(contractAddress, TaikoL1, provider);
const stateVariables = await contract.getStateVariables();
const nextBlockId = stateVariables.numBlocks + 1;
const nextBlockId = stateVariables.numBlocks;
return BigNumber.from(nextBlockId).toNumber();
};

0 comments on commit fffec92

Please sign in to comment.