Skip to content

Commit

Permalink
/runtime/transaction/{hash}: set total_count
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjat authored and aefhm committed Mar 9, 2023
1 parent 2645798 commit 57c02d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/v1/strict_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57c02d4

Please sign in to comment.