Skip to content

Commit

Permalink
zcash_client_sqlite: Fix balance APIs in TestState to include Orchard
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d authored and nuttycom committed Mar 10, 2024
1 parent 2162f04 commit 9ccedf2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zcash_client_sqlite/src/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ impl<Cache> TestState<Cache> {
min_confirmations: u32,
) -> NonNegativeAmount {
self.with_account_balance(account, min_confirmations, |balance| {
balance.sapling_balance().spendable_value()
balance.spendable_value()
})
}

Expand All @@ -816,8 +816,7 @@ impl<Cache> TestState<Cache> {
min_confirmations: u32,
) -> NonNegativeAmount {
self.with_account_balance(account, min_confirmations, |balance| {
balance.sapling_balance().value_pending_spendability()
+ balance.sapling_balance().change_pending_confirmation()
balance.value_pending_spendability() + balance.change_pending_confirmation()
})
.unwrap()
}
Expand All @@ -829,7 +828,7 @@ impl<Cache> TestState<Cache> {
min_confirmations: u32,
) -> NonNegativeAmount {
self.with_account_balance(account, min_confirmations, |balance| {
balance.sapling_balance().change_pending_confirmation()
balance.change_pending_confirmation()
})
}

Expand Down

0 comments on commit 9ccedf2

Please sign in to comment.