From: Alekos Filini Date: Sat, 8 Aug 2020 10:06:40 +0000 (+0200) Subject: [wallet] Add `force_non_witness_utxo()` to TxBuilder X-Git-Tag: 0.1.0-beta.1~13 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.EncoderStringWriter.html?a=commitdiff_plain;h=3a04972bd92e1e89f44aa43e5ef313906c45c59b;p=bdk-cli [wallet] Add `force_non_witness_utxo()` to TxBuilder --- diff --git a/src/cli.rs b/src/cli.rs index 48f5e42..164ae4a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -326,8 +326,11 @@ where .map(|s| parse_addressee(s)) .collect::, _>>() .map_err(|s| Error::Generic(s))?; - let mut tx_builder = - TxBuilder::from_addressees(addressees).send_all(sub_matches.is_present("send_all")); + let mut tx_builder = TxBuilder::from_addressees(addressees); + + if sub_matches.is_present("send_all") { + tx_builder = tx_builder.send_all(); + } if let Some(fee_rate) = sub_matches.value_of("fee_rate") { let fee_rate = f32::from_str(fee_rate).map_err(|s| Error::Generic(s.to_string()))?;