From 31a53498806bc1370f2228204e9e4a8ff7123970 Mon Sep 17 00:00:00 2001 From: Ji Hwan Date: Mon, 7 Oct 2024 10:18:46 +0900 Subject: [PATCH] fix: monitor missing txinfo for first element Signed-off-by: Ji Hwan --- cmd/monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/monitor/monitor.go b/cmd/monitor/monitor.go index 2395bf0c..2c9c4664 100644 --- a/cmd/monitor/monitor.go +++ b/cmd/monitor/monitor.go @@ -502,7 +502,7 @@ func renderMonitorUI(ctx context.Context, ec *ethclient.Client, ms *monitorStatu transactions := ms.SelectedBlock.Transactions() if len(transactions) > 0 { index := transactionList.SelectedRow - 1 - if index > 0 && index < len(transactions) { + if index >= 0 && index < len(transactions) { tx := transactions[index] skeleton.TxInfo.Rows = ui.GetSimpleTxFields(tx, ms.ChainID, baseFee) } else {