diff --git a/api/v1/strict_server.go b/api/v1/strict_server.go index 017f8b978..dd511a849 100644 --- a/api/v1/strict_server.go +++ b/api/v1/strict_server.go @@ -285,7 +285,11 @@ func (srv *StrictServerImpl) GetRuntimeTransactionsTxHash(ctx context.Context, r } // Perform additional tx body parsing on the fly; DB stores only partially-parsed txs. - var apiTransactions apiTypes.RuntimeTransactionList + apiTransactions := apiTypes.RuntimeTransactionList{ + Transactions: []apiTypes.RuntimeTransaction{}, + TotalCount: storageTransactions.TotalCount, + IsTotalCountClipped: storageTransactions.IsTotalCountClipped, + } for _, storageTransaction := range storageTransactions.Transactions { apiTransaction, err2 := renderRuntimeTransaction(storageTransaction) if err2 != nil {