Skip to content

Commit

Permalink
cli: fix listing external descriptor-typed wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 7, 2024
1 parent 173993c commit c58fed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use amplify::IoError;
use bpstd::psbt::{Beneficiary, TxParams};
use bpstd::{ConsensusEncode, Derive, IdxBase, Keychain, NormalIndex, Sats, Tx, XpubDerivable};
use colored::Colorize;
use descriptors::{Descriptor, StdDescr};
use descriptors::Descriptor;
use nonasync::persistence::PersistenceError;
use psbt::{ConstructionError, Payment, Psbt, PsbtConstructor, PsbtVer, UnfinalizedInputs};
use strict_encoding::Ident;
Expand Down Expand Up @@ -237,7 +237,7 @@ impl<O: DescriptorOpts> Exec for Args<Command, O> {
if config.default_wallet == name { "\t[default]" } else { "\t\t" }
);
let provider = FsTextStore::new(entry.path().clone())?;
let wallet = match Wallet::<XpubDerivable, StdDescr>::load(provider, true) {
let wallet = match Wallet::<XpubDerivable, O::Descr>::load(provider, true) {
Err(err) => {
error!("Error loading wallet descriptor: {err}");
println!("# broken wallet descriptor");
Expand Down

0 comments on commit c58fed0

Please sign in to comment.