Skip to content

Commit

Permalink
zcash_client_backend: Remove default impls for WalletTest methods
Browse files Browse the repository at this point in the history
Now that these are in a separate trait, we can just require them for all
downstreams, in order to make them usable in all tests.
  • Loading branch information
str4d committed Sep 20, 2024
1 parent 47cd7b8 commit a463f7d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions zcash_client_backend/src/data_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,19 +1223,15 @@ pub trait WalletTest: InputSource + WalletRead {
) -> Result<
Vec<testing::TransactionSummary<<Self as WalletRead>::AccountId>>,
<Self as WalletRead>::Error,
> {
Ok(vec![])
}
>;

/// Returns the note IDs for shielded notes sent by the wallet in a particular
/// transaction.
fn get_sent_note_ids(
&self,
_txid: &TxId,
_protocol: ShieldedProtocol,
) -> Result<Vec<NoteId>, <Self as WalletRead>::Error> {
Ok(vec![])
}
) -> Result<Vec<NoteId>, <Self as WalletRead>::Error>;

#[allow(clippy::type_complexity)]
fn get_confirmed_sends(
Expand Down

0 comments on commit a463f7d

Please sign in to comment.