Fix argument to decrypt_and_store_transaction

This commit is contained in:
Kris Nuttycombe 2021-01-15 10:02:24 -07:00
parent 8a7d051138
commit 120ee25e1d
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ use zcash_primitives::{
use crate::{
address::RecipientAddress,
data_api::{error::Error, WalletRead, WalletWrite},
data_api::{error::Error, WalletWrite},
decrypt_transaction,
wallet::{AccountId, OvkPolicy},
};
@ -26,13 +26,13 @@ pub const ANCHOR_OFFSET: u32 = 10;
/// the wallet, and saves it to the wallet.
pub fn decrypt_and_store_transaction<'db, N, E, P, D>(
params: &P,
mut data: &'db D,
data: &mut D,
tx: &Transaction,
) -> Result<(), E>
where
E: From<Error<N>>,
P: consensus::Parameters,
&'db D: WalletWrite<Error = E>,
D: WalletWrite<Error = E>,
{
// Fetch the ExtendedFullViewingKeys we are tracking
let extfvks = data.get_extended_full_viewing_keys()?;