diff --git a/src/util/bip143.rs b/src/util/bip143.rs index 102076eb..80128a55 100644 --- a/src/util/bip143.rs +++ b/src/util/bip143.rs @@ -201,8 +201,7 @@ mod tests { fn p2pkh_hex(pk: &str) -> Script { let pk: PublicKey = PublicKey::from_str(pk).unwrap(); - let witness_script = Address::p2pkh(&pk, Network::Bitcoin).script_pubkey(); - witness_script + Address::p2pkh(&pk, Network::Bitcoin).script_pubkey() } fn run_test_sighash_bip143(tx: &str, script: &str, input_index: usize, value: u64, hash_type: u32, expected_result: &str) {