mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 15:21:39 +02:00
Fix error when estimating fees for selection strategies (#545)
This commit is contained in:
@@ -332,6 +332,10 @@ where
|
||||
Ok(())
|
||||
})?;
|
||||
|
||||
if args.estimate_selection_strategies {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let tor_config = match tor_config {
|
||||
Some(mut c) => {
|
||||
c.skip_send_attempt = Some(args.skip_tor);
|
||||
|
||||
@@ -483,7 +483,9 @@ pub fn parse_send_args(args: &ArgMatches) -> Result<command::SendArgs, ParseErro
|
||||
false => match SlatepackAddress::try_from(dest) {
|
||||
Ok(a) => Some(a),
|
||||
Err(_) => {
|
||||
if !estimate_selection_strategies {
|
||||
println!("No recipient Slatepack address or provided address invalid. No payment proof will be requested.");
|
||||
}
|
||||
None
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user