Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1411] Refactor AccountBalance to use Balance for transparent funds #1570

Merged
merged 3 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix intra-doc links.
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
  • Loading branch information
daira committed Dec 7, 2024
commit bd45812d42c77931f4d8f09bba7c966b8216af34
8 changes: 4 additions & 4 deletions zcash_client_backend/src/data_api/testing/transparent.rs
Original file line number Diff line number Diff line change
@@ -20,10 +20,10 @@

use super::TestAccount;

/// Checks whether the transparent balance of the given test [`account`] is as [`expected`]
/// considering the [`min_confirmations`]. It is assumed that zero or one [`min_confirmations`]
/// are treated the same so this function also checks the other case when 1 or 0 [`min_confirmations`]
/// are passed as arguments.
/// Checks whether the transparent balance of the given test `account` is as `expected`
/// considering the `min_confirmations`. It is assumed that zero or one `min_confirmations`
/// are treated the same, and so this function also checks the other case when
/// `min_confirmations` is 0 or 1.
fn check_balance<DSF>(
st: &TestState<impl TestCache, <DSF as DataStoreFactory>::DataStore, LocalNetwork>,
account: &TestAccount<<DSF as DataStoreFactory>::Account>,
@@ -78,8 +78,8 @@
.unwrap()
.into_iter()
.map(|utxo| utxo.value())
.sum::<Option<NonNegativeAmount>>(),
Some(expected.spendable_value()),

Check warning on line 82 in zcash_client_backend/src/data_api/testing/transparent.rs

Codecov / codecov/patch

zcash_client_backend/src/data_api/testing/transparent.rs#L81-L82

Added lines #L81 - L82 were not covered by tests
);
}
}
Loading