@@ -245,7 +245,7 @@ pub async fn load_wallet(
245245}
246246
247247#[ derive( Debug ) ]
248- pub struct TxNotes {
248+ pub struct TxNotesCount {
249249 pub transparent_tx_notes : usize ,
250250 pub sapling_tx_notes : usize ,
251251 pub orchard_tx_notes : usize ,
@@ -259,7 +259,7 @@ pub struct TxActions {
259259}
260260
261261/// Returnes number of notes used as inputs for txid as TxActions (transparent_notes, sapling_notes, orchard_notes).
262- pub async fn tx_inputs ( client : & LightClient , txid : & str ) -> TxNotes {
262+ pub async fn tx_inputs ( client : & LightClient , txid : & str ) -> TxNotesCount {
263263 let notes = client. do_list_notes ( true ) . await ;
264264
265265 let mut transparent_notes = 0 ;
@@ -311,15 +311,15 @@ pub async fn tx_inputs(client: &LightClient, txid: &str) -> TxNotes {
311311 }
312312 }
313313
314- TxNotes {
314+ TxNotesCount {
315315 transparent_tx_notes : transparent_notes,
316316 sapling_tx_notes : sapling_notes,
317317 orchard_tx_notes : orchard_notes,
318318 }
319319}
320320
321321/// Returnes number of notes created in txid as TxActions (transparent_notes, sapling_notes, orchard_notes).
322- pub async fn tx_outputs ( client : & LightClient , txid : & str ) -> TxNotes {
322+ pub async fn tx_outputs ( client : & LightClient , txid : & str ) -> TxNotesCount {
323323 let notes = client. do_list_notes ( true ) . await ;
324324
325325 let mut transparent_notes = 0 ;
@@ -374,7 +374,7 @@ pub async fn tx_outputs(client: &LightClient, txid: &str) -> TxNotes {
374374 }
375375 }
376376
377- TxNotes {
377+ TxNotesCount {
378378 transparent_tx_notes : transparent_notes,
379379 sapling_tx_notes : sapling_notes,
380380 orchard_tx_notes : orchard_notes,
@@ -391,7 +391,7 @@ pub async fn tx_actions(
391391 let tx_outs = if let Some ( rec) = recipient {
392392 tx_outputs ( rec, txid) . await
393393 } else {
394- TxNotes {
394+ TxNotesCount {
395395 transparent_tx_notes : 0 ,
396396 sapling_tx_notes : 0 ,
397397 orchard_tx_notes : 0 ,
0 commit comments