From 74cb8e8abe74e660ae22d60fbda4843bc1f9d796 Mon Sep 17 00:00:00 2001 From: Patrick Pfeiffer <306324+guybrush@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:20:19 +0100 Subject: [PATCH] fix(frontend): fix txs-tab on blocks-page for pre-merge blocks --- handlers/eth1Block.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/handlers/eth1Block.go b/handlers/eth1Block.go index 8485173833..6d32092d29 100644 --- a/handlers/eth1Block.go +++ b/handlers/eth1Block.go @@ -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)