From 9cf9776a86e1b54dbe7af1b841680f569d83b19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Mon, 3 Feb 2025 16:56:02 +0100 Subject: [PATCH] Fix condition in parse --- backup/client/rpc/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/client/rpc/rpc.go b/backup/client/rpc/rpc.go index 8526f3f..3ad1b7f 100644 --- a/backup/client/rpc/rpc.go +++ b/backup/client/rpc/rpc.go @@ -140,7 +140,7 @@ func (c *Client) GetTxResults(block uint64) ([]*abci.ResponseDeliverTx, error) { return nil, fmt.Errorf("unable to fetch block results, %w", err) } - txResults := make([]*abci.ResponseDeliverTx, 0) + txResults := make([]*abci.ResponseDeliverTx, len(results.Results.DeliverTxs)) for txIndex, tx := range results.Results.DeliverTxs { txResults[txIndex] = &tx