From 5222e78c4bccada4e860b6f0aea1ee340fb47310 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Mon, 17 Feb 2020 14:22:53 +0100 Subject: [PATCH] Contribution improvements --- Cargo.toml | 2 +- examples/repl.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f65ba76..6cf3607 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ base64 = "^0.11" # Optional dependencies sled = { version = "0.31.0", optional = true } -electrum-client = { version = "0.1.0-beta.1", optional = true } +electrum-client = { version = "0.1.0-beta.5", optional = true } [features] minimal = [] diff --git a/examples/repl.rs b/examples/repl.rs index 0430d96..b67b6e3 100644 --- a/examples/repl.rs +++ b/examples/repl.rs @@ -304,11 +304,10 @@ fn main() { let psbt: PartiallySignedTransaction = deserialize(&psbt).unwrap(); let (psbt, finalized) = wallet.sign(psbt).unwrap(); + println!("PSBT: {}", base64::encode(&serialize(&psbt))); println!("Finalized: {}", finalized); if finalized { println!("Extracted: {}", serialize_hex(&psbt.extract_tx())); - } else { - println!("PSBT: {}", base64::encode(&serialize(&psbt))); } } }; -- 2.49.0