Skip to content

Commit

Permalink
fix(zkevm_api): getBatchCountersByNumber blocknum (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
revitteth authored Dec 18, 2024
1 parent 7bba5f6 commit 3300b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/jsonrpc/zkevm_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func (api *ZkEvmAPIImpl) GetBatchCountersByNumber(ctx context.Context, batchNumR
)

for i, blockNum := range batchBlockNumbers {
if l1InfoIndex, err = roHermezDb.GetBlockL1InfoTreeIndex(block.NumberU64()); err != nil {
if l1InfoIndex, err = roHermezDb.GetBlockL1InfoTreeIndex(blockNum); err != nil {
return nil, err
}
if _, err := batchCounters.StartNewBlock(l1InfoIndex != 0); err != nil {
Expand Down

0 comments on commit 3300b84

Please sign in to comment.