[descriptors] Transform a descriptor into its "public" version

This commit is contained in:
Alekos Filini
2020-05-10 17:42:02 +02:00
parent 0e432f3b26
commit c1b01e4d8c
6 changed files with 267 additions and 106 deletions

View File

@@ -101,7 +101,12 @@ async fn main() {
continue;
}
cli::handle_matches(&Arc::clone(&wallet), matches.unwrap()).await;
if let Some(s) = cli::handle_matches(&Arc::clone(&wallet), matches.unwrap())
.await
.unwrap()
{
println!("{}", s);
}
}
Err(ReadlineError::Interrupted) => continue,
Err(ReadlineError::Eof) => break,
@@ -114,6 +119,8 @@ async fn main() {
// rl.save_history("history.txt").unwrap();
} else {
cli::handle_matches(&wallet, matches).await;
if let Some(s) = cli::handle_matches(&wallet, matches).await.unwrap() {
println!("{}", s);
}
}
}