Skip to content

Commit 6c69b66

Browse files
committed
Use Version constant
Replace Version(2) with predefined Version::TWO constant
1 parent d117138 commit 6c69b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitcoin/tests/psbt-sign-taproot.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn create_psbt_for_taproot_key_path_spend(
211211
let prev_tx_id = "06980ca116f74c7845a897461dd0e1d15b114130176de5004957da516b4dee3a";
212212

213213
let transaction = Transaction {
214-
version: Version(2),
214+
version: Version::TWO,
215215
lock_time: absolute::LockTime::ZERO,
216216
input: vec![TxIn {
217217
previous_output: OutPoint { txid: prev_tx_id.parse().unwrap(), vout: 0 },
@@ -288,7 +288,7 @@ fn create_psbt_for_taproot_script_path_spend(
288288
}];
289289
let prev_tx_id = "9d7c6770fca57285babab60c51834cfcfd10ad302119cae842d7216b4ac9a376";
290290
let transaction = Transaction {
291-
version: Version(2),
291+
version: Version::TWO,
292292
lock_time: absolute::LockTime::ZERO,
293293
input: vec![TxIn {
294294
previous_output: OutPoint { txid: prev_tx_id.parse().unwrap(), vout: 0 },

0 commit comments

Comments
 (0)