Skip to content

Commit

Permalink
Tweak imports
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Mar 2, 2025
1 parent 2788344 commit c2da1f5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use {
tally::Tally,
},
anyhow::{anyhow, bail, ensure, Context, Error},
bdk_wallet as bdk,
bip39::Mnemonic,
bitcoin::{
address::{Address, NetworkUnchecked},
Expand Down
1 change: 1 addition & 0 deletions src/subcommand/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use {
super::*,
crate::wallet::{batch, wallet_constructor::WalletConstructor, Wallet},
bdk::KeychainKind,
bitcoin::Psbt,
shared_args::SharedArgs,
};
Expand Down
4 changes: 2 additions & 2 deletions src/subcommand/wallet/descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Output {

pub(crate) fn run(wallet: Wallet) -> SubcommandResult {
Ok(Some(Box::new(Output {
external: wallet.get_descriptor(bdk_wallet::KeychainKind::External)?,
internal: wallet.get_descriptor(bdk_wallet::KeychainKind::Internal)?,
external: wallet.get_descriptor(KeychainKind::External)?,
internal: wallet.get_descriptor(KeychainKind::Internal)?,
})))
}
2 changes: 1 addition & 1 deletion src/subcommand/wallet/receive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Receive {
addresses.push(
wallet
.wallet
.reveal_next_address(bdk_wallet::KeychainKind::External)
.reveal_next_address(KeychainKind::External)
.address
.into_unchecked(),
);
Expand Down
4 changes: 1 addition & 3 deletions src/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use {
super::*,
batch::ParentInfo,
bdk_wallet::{
self as bdk, keys::KeyMap, ChangeSet, KeychainKind, PersistedWallet, WalletPersister,
},
bdk::{keys::KeyMap, ChangeSet, KeychainKind, PersistedWallet, WalletPersister},
bitcoin::{
bip32::{ChildNumber, DerivationPath, Xpriv},
psbt::Psbt,
Expand Down

0 comments on commit c2da1f5

Please sign in to comment.