From 6c69b66b0d496a66a4db2f22df8ac617ed807fb3 Mon Sep 17 00:00:00 2001 From: jrakibi Date: Sun, 23 Feb 2025 04:18:04 +0700 Subject: [PATCH] Use Version constant Replace Version(2) with predefined Version::TWO constant --- bitcoin/tests/psbt-sign-taproot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/tests/psbt-sign-taproot.rs b/bitcoin/tests/psbt-sign-taproot.rs index 15ff88115..89611e799 100644 --- a/bitcoin/tests/psbt-sign-taproot.rs +++ b/bitcoin/tests/psbt-sign-taproot.rs @@ -211,7 +211,7 @@ fn create_psbt_for_taproot_key_path_spend( let prev_tx_id = "06980ca116f74c7845a897461dd0e1d15b114130176de5004957da516b4dee3a"; let transaction = Transaction { - version: Version(2), + version: Version::TWO, lock_time: absolute::LockTime::ZERO, input: vec![TxIn { previous_output: OutPoint { txid: prev_tx_id.parse().unwrap(), vout: 0 }, @@ -288,7 +288,7 @@ fn create_psbt_for_taproot_script_path_spend( }]; let prev_tx_id = "9d7c6770fca57285babab60c51834cfcfd10ad302119cae842d7216b4ac9a376"; let transaction = Transaction { - version: Version(2), + version: Version::TWO, lock_time: absolute::LockTime::ZERO, input: vec![TxIn { previous_output: OutPoint { txid: prev_tx_id.parse().unwrap(), vout: 0 },