Skip to content

Commit

Permalink
Fix condition in parse
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Feb 3, 2025
1 parent 6cf77ca commit 9cf9776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/client/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cf9776

Please sign in to comment.