diff --git a/bitcoin/tests/psbt-sign-taproot.rs b/bitcoin/tests/psbt-sign-taproot.rs index b738cf00..a8da4084 100644 --- a/bitcoin/tests/psbt-sign-taproot.rs +++ b/bitcoin/tests/psbt-sign-taproot.rs @@ -61,7 +61,7 @@ fn psbt_sign_taproot() { let script3 = create_basic_single_sig_script(secp, sk_path[2].0); // m/86'/1'/0'/0/2 // Just use one of the secret keys for the key path spend. - let kp = Keypair::from_seckey_str(secp, &sk_path[2].0).expect("failed to create keypair"); + let kp = Keypair::from_seckey_str(secp, sk_path[2].0).expect("failed to create keypair"); let internal_key = kp.x_only_public_key().0; // Ignore the parity. @@ -118,7 +118,7 @@ fn psbt_sign_taproot() { // script path spend { // use private key of path "m/86'/1'/0'/0/1" as signing key - let kp = Keypair::from_seckey_str(secp, &sk_path[1].0).expect("failed to create keypair"); + let kp = Keypair::from_seckey_str(secp, sk_path[1].0).expect("failed to create keypair"); let x_only_pubkey = kp.x_only_public_key().0; let signing_key_path = sk_path[1].1;