Skip to content

Commit 9bb39a3

Browse files
committed
Avoid a wildcard match in tx construction
1 parent 9e098a5 commit 9bb39a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ impl<D> Wallet<D> {
13471347
}
13481348
Some(tx_builder::Version(x)) => x,
13491349
None if requirements.csv.is_some() => 2,
1350-
_ => 1,
1350+
None => 1,
13511351
};
13521352

13531353
// We use a match here instead of a unwrap_or_else as it's way more readable :)

0 commit comments

Comments
 (0)