@@ -73,15 +73,15 @@ func (r *blockResult) JSON() any {
7373 txData := make (map [string ]any )
7474 txData ["id" ] = tx .ID ().String ()
7575 txData ["status" ] = r .results [i ].Status .String ()
76-
76+
7777 // System transactions have empty collection ID
7878 if r .results [i ].CollectionID == flow .EmptyID {
7979 txData ["type" ] = "system"
8080 } else {
8181 txData ["type" ] = "user"
8282 txData ["collectionId" ] = r .results [i ].CollectionID .String ()
8383 }
84-
84+
8585 txs = append (txs , txData )
8686 }
8787 result ["transactions" ] = txs
@@ -123,10 +123,10 @@ func (r *blockResult) String() string {
123123 // Show transactions if included
124124 if command .ContainsFlag (r .included , "transactions" ) && len (r .transactions ) > 0 {
125125 _ , _ = fmt .Fprintf (writer , "\n Transactions:\n " )
126-
126+
127127 userCount := 0
128128 systemCount := 0
129-
129+
130130 for i , tx := range r .transactions {
131131 var txType string
132132 if r .results [i ].CollectionID == flow .EmptyID {
@@ -136,16 +136,16 @@ func (r *blockResult) String() string {
136136 txType = "user"
137137 userCount ++
138138 }
139-
140- _ , _ = fmt .Fprintf (writer , " [%d] %s\t %s (%s)\n " ,
141- i ,
142- tx .ID ().String (),
139+
140+ _ , _ = fmt .Fprintf (writer , " [%d] %s\t %s (%s)\n " ,
141+ i ,
142+ tx .ID ().String (),
143143 r .results [i ].Status .String (),
144144 txType ,
145145 )
146146 }
147-
148- _ , _ = fmt .Fprintf (writer , "\n Total: %d transactions (%d user, %d system)\n " ,
147+
148+ _ , _ = fmt .Fprintf (writer , "\n Total: %d transactions (%d user, %d system)\n " ,
149149 len (r .transactions ), userCount , systemCount )
150150 }
151151
0 commit comments