Skip to content

Commit

Permalink
Merge pull request #28 from dannywillems/dw/remove-warnings
Browse files Browse the repository at this point in the history
Clippy
  • Loading branch information
mimoo authored Jan 30, 2024
2 parents d454984 + f854715 commit 60f979b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.75.0"
4 changes: 2 additions & 2 deletions src/frost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions src/mpc_sign_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 60f979b

Please sign in to comment.