Skip to content

Commit 6f570ed

Browse files
committed
refactor(wallet): put get_address and get_internal_address into infallible impl block
1 parent 1ec4716 commit 6f570ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,12 @@ impl Wallet {
226226
NewError::Persist(_) => unreachable!("no persistence so it can't fail"),
227227
})
228228
}
229+
}
229230

231+
impl<D> Wallet<D>
232+
where
233+
D: PersistBackend<ChangeSet, WriteError = core::convert::Infallible>,
234+
{
230235
/// Infallibly return a derived address using the external descriptor, see [`AddressIndex`] for
231236
/// available address index selection strategies. If none of the keys in the descriptor are derivable
232237
/// (i.e. does not end with /*) then the same address will always be returned for any [`AddressIndex`].

0 commit comments

Comments
 (0)