From 9bb39a3a3fcdebeec53a8a771091954c845db7a5 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Fri, 2 Feb 2024 02:02:27 +0000 Subject: [PATCH] Avoid a wildcard match in tx construction --- crates/bdk/src/wallet/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bdk/src/wallet/mod.rs b/crates/bdk/src/wallet/mod.rs index a6b4f987..c3151560 100644 --- a/crates/bdk/src/wallet/mod.rs +++ b/crates/bdk/src/wallet/mod.rs @@ -1347,7 +1347,7 @@ impl Wallet { } Some(tx_builder::Version(x)) => x, None if requirements.csv.is_some() => 2, - _ => 1, + None => 1, }; // We use a match here instead of a unwrap_or_else as it's way more readable :)