Skip to content

Commit f9aaf60

Browse files
Fix typos in tests and docs
Co-authored-by: Leonardo L. <[email protected]>
1 parent 0c2c013 commit f9aaf60

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/api.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,24 @@ pub struct BlockSummary {
102102
pub struct AddressStats {
103103
/// The address.
104104
pub address: String,
105-
/// The summary of transactions for this address information, already on chain
105+
/// The summary of transactions for this address, already on chain.
106106
pub chain_stats: AddressTxsSummary,
107-
/// The summary of transactions for this address information, currently in the mempool
107+
/// The summary of transactions for this address, currently in the mempool.
108108
pub mempool_stats: AddressTxsSummary,
109109
}
110110

111111
/// Contains a summary of the transactions for an address.
112112
#[derive(Debug, Copy, Clone, PartialEq, Eq, Deserialize)]
113113
pub struct AddressTxsSummary {
114-
/// The number of funded transaction outputs, in
114+
/// The number of funded transaction outputs.
115115
pub funded_txo_count: u32,
116116
/// The sum of the funded transaction outputs, in satoshis.
117117
pub funded_txo_sum: u64,
118118
/// The number of spent transaction outputs.
119119
pub spent_txo_count: u32,
120120
/// The sum of the spent transaction outputs, in satoshis.
121121
pub spent_txo_sum: u64,
122-
/// The total number of transactions
122+
/// The total number of transactions.
123123
pub tx_count: u32,
124124
}
125125

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,10 @@ mod test {
10271027
generate_blocks_and_wait(1);
10281028

10291029
let address_stats_blocking = blocking_client.get_address_stats(&address).unwrap();
1030-
let address_staats_async = async_client.get_address_stats(&address).await.unwrap();
1031-
assert_eq!(address_stats_blocking, address_staats_async);
1032-
assert_eq!(address_staats_async.chain_stats.funded_txo_count, 1);
1033-
assert_eq!(address_staats_async.chain_stats.funded_txo_sum, 1000);
1030+
let address_stats_async = async_client.get_address_stats(&address).await.unwrap();
1031+
assert_eq!(address_stats_blocking, address_stats_async);
1032+
assert_eq!(address_stats_async.chain_stats.funded_txo_count, 1);
1033+
assert_eq!(address_stats_async.chain_stats.funded_txo_sum, 1000);
10341034
}
10351035

10361036
#[cfg(all(feature = "blocking", feature = "async"))]

0 commit comments

Comments
 (0)