zcash_client_sqlite: Fix balance APIs in `TestState` to include Orchard

This commit is contained in:
Jack Grigg 2024-03-10 19:53:31 +00:00
parent c4abcba343
commit 2a81156520
1 changed files with 3 additions and 4 deletions

View File

@ -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()
})
}
@ -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()
}
@ -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()
})
}