diff --git a/bitcoin/src/psbt/serialize.rs b/bitcoin/src/psbt/serialize.rs index ddbe2ec8..61019f62 100644 --- a/bitcoin/src/psbt/serialize.rs +++ b/bitcoin/src/psbt/serialize.rs @@ -53,7 +53,7 @@ impl PartiallySignedTransaction { let mut buf: Vec = Vec::new(); // - buf.extend(b"psbt"); + buf.extend_from_slice(b"psbt"); buf.push(0xff_u8);