From f5f35b94822fc902d55af0830690f9831583e7f5 Mon Sep 17 00:00:00 2001 From: Armando CD Date: Thu, 9 Jan 2025 08:12:12 -0300 Subject: [PATCH] fix typo --- cli/src/cmd.rs | 5 +++-- cli/src/opts.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/src/cmd.rs b/cli/src/cmd.rs index 7e934f4..c8ac2fe 100644 --- a/cli/src/cmd.rs +++ b/cli/src/cmd.rs @@ -388,7 +388,7 @@ impl Args { let mound = self.mound(); for info in mound.contracts_info() { println!("---"); - println!("{}", serde_yaml::to_string(&info).expect("Uenable to generate YAML")); + println!("{}", serde_yaml::to_string(&info).expect("Unable to generate YAML")); } } @@ -416,7 +416,7 @@ impl Args { Cmd::State { wallet, all, global, owned, contract } => { let mut runtime = self.runtime(wallet.wallet.as_deref()); if wallet.sync { - let indexer = self.indexer(&wallet.reslover); + let indexer = self.indexer(&wallet.resolver); match self.seal { SealType::BitcoinOpret => runtime.wallet_opret().update(&indexer), SealType::BitcoinTapret => runtime.wallet_tapret().update(&indexer), @@ -554,6 +554,7 @@ impl Args { barrow.attest(&bundle, &tx.into(), mpc, dbc, &prevouts); } }; + psbt.encode( psbt.version, &mut File::create(psbt_file).expect("Unable to write PSBT"), diff --git a/cli/src/opts.rs b/cli/src/opts.rs index 82f7ff4..d89eb65 100644 --- a/cli/src/opts.rs +++ b/cli/src/opts.rs @@ -36,5 +36,5 @@ pub struct WalletOpts { pub sync: bool, #[clap(flatten)] - pub reslover: ResolverOpt, + pub resolver: ResolverOpt, }