From 6739dffef0e987226302e42e8d58af1239b6f283 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Sun, 28 Jan 2024 13:05:24 +0100 Subject: [PATCH 1/3] Clippy happy --- src/frost.rs | 4 ++-- src/mpc_sign_tx.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frost.rs b/src/frost.rs index 189fc86..25a5e5b 100644 --- a/src/frost.rs +++ b/src/frost.rs @@ -312,11 +312,11 @@ mod tests { // dump private let serialized_private = private.serialize(); - println!("private key: {}", hex::encode(&serialized_private)); + println!("private key: {}", hex::encode(serialized_private)); // dump pubkey let serialized_pubkey = pubkey.serialize(); - println!("{}", hex::encode(&serialized_pubkey)); + println!("{}", hex::encode(serialized_pubkey)); // deserialize pubkey let deserialized_pubkey = bitcoin::PublicKey::from_slice(&serialized_pubkey).unwrap(); diff --git a/src/mpc_sign_tx.rs b/src/mpc_sign_tx.rs index 8c9f743..0813d93 100644 --- a/src/mpc_sign_tx.rs +++ b/src/mpc_sign_tx.rs @@ -209,17 +209,17 @@ mod tests { }; // fund that transaction with our wallet - let (tx_hex, _, _fee) = fund_raw_transaction(&ctx, TransactionOrHex::Transaction(&tx)) + let (tx_hex, _, _fee) = fund_raw_transaction(ctx, TransactionOrHex::Transaction(&tx)) .await .unwrap(); // sign that transaction with our wallet - let (tx_hex, _) = sign_transaction(&ctx, TransactionOrHex::Hex(tx_hex)) + let (tx_hex, _) = sign_transaction(ctx, TransactionOrHex::Hex(tx_hex)) .await .unwrap(); // broadcast it - let txid = send_raw_transaction(&ctx, TransactionOrHex::Hex(tx_hex)) + let txid = send_raw_transaction(ctx, TransactionOrHex::Hex(tx_hex)) .await .unwrap(); From 1cd9716bc3964649134ed09949a1628f87f44b49 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Sun, 28 Jan 2024 13:07:13 +0100 Subject: [PATCH 2/3] Add rust-toolchain for 1.75 --- rust-toolchain | 1 + 1 file changed, 1 insertion(+) create mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..aafe62c --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.75 \ No newline at end of file From f85471538d453d26202aeb93cc66a3ce5a0be7d9 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Mon, 29 Jan 2024 10:18:38 +0100 Subject: [PATCH 3/3] Use Rust 1.75.0 and use rust-toolchain.toml instead of rust-toolchain --- rust-toolchain | 1 - rust-toolchain.toml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index aafe62c..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -1.75 \ No newline at end of file diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..7897a24 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.75.0"