Make wallet methods take &mut psbt

Rather than consuming it because that is unergonomic.
This commit is contained in:
LLFourn
2021-04-28 09:53:03 +10:00
parent 00f07818f9
commit 5a0c150ff9
6 changed files with 66 additions and 62 deletions

View File

@@ -158,9 +158,9 @@
//! )?;
//!
//! let psbt = "...";
//! let psbt = deserialize(&base64::decode(psbt).unwrap())?;
//! let mut psbt = deserialize(&base64::decode(psbt).unwrap())?;
//!
//! let (signed_psbt, finalized) = wallet.sign(psbt, None)?;
//! let finalized = wallet.sign(&mut psbt, None)?;
//!
//! Ok(())
//! }