Skip to content

Commit

Permalink
fix(frontend): fix txs-tab on blocks-page for pre-merge blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Jan 27, 2025
1 parent f75902b commit 74cb8e8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions handlers/eth1Block.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,8 @@ func GetExecutionBlockPageData(number uint64, limit int) (*types.Eth1BlockPageDa
})
}

if limit > 0 {
if len(txs) > limit {
txs = txs[:limit]
} else {
txs = txs[:0]
}
if limit > 0 && len(txs) > limit {
txs = txs[:limit]
}

blobGasPrice := eip4844.CalcBlobFee(block.ExcessBlobGas)
Expand Down

0 comments on commit 74cb8e8

Please sign in to comment.