Skip to content

Commit

Permalink
wallet: improve WalletDescriptor::addresses signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Nov 19, 2023
1 parent 2b5f881 commit e799626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ impl<K, D: Descriptor<K>, L2: Layer2Descriptor> WalletDescr<K, D, L2> {
}
}

pub fn addresses(&self, keychain: Keychain) -> AddrIter<K, D> {
pub fn addresses(&self, keychain: impl Into<Keychain>) -> AddrIter<K, D> {

Check warning on line 116 in src/wallet.rs

View check run for this annotation

Codecov / codecov/patch

src/wallet.rs#L116

Added line #L116 was not covered by tests
AddrIter {
generator: &self.generator,
network: self.network.into(),
keychain,
keychain: keychain.into(),

Check warning on line 120 in src/wallet.rs

View check run for this annotation

Codecov / codecov/patch

src/wallet.rs#L120

Added line #L120 was not covered by tests
index: NormalIndex::ZERO,
_phantom: PhantomData,
}
Expand Down

0 comments on commit e799626

Please sign in to comment.