zcash_client_backend: Fix missing bound

In 47a0d0d2b7 `WalletWriteTransparent` was
merged into `WalletWrite`, including its associated type `UtxoRef`.
However, `shield_transparent_funds` placed a bound on this associated
type that was not moved to `WalletWrite`. This left the generic
parameter `U` unconstrained, which didn't cause a local failure because
the method has no local tests, but was immediately apparent when trying
to use the method in the mobile SDKs.
This commit is contained in:
Jack Grigg 2022-10-14 20:45:35 +00:00
parent 5301b9c9d3
commit b3dc323876
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ where
E: From<Error<N>>, E: From<Error<N>>,
P: consensus::Parameters, P: consensus::Parameters,
R: Copy + Debug, R: Copy + Debug,
D: WalletWrite<Error = E, TxRef = R>, D: WalletWrite<Error = E, TxRef = R, UtxoRef = U>,
{ {
let account = wallet_db let account = wallet_db
.get_account_for_ufvk(&usk.to_unified_full_viewing_key())? .get_account_for_ufvk(&usk.to_unified_full_viewing_key())?