Skip to content

Commit

Permalink
Avoid a wildcard match in tx construction
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Feb 2, 2024
1 parent 9e098a5 commit 9bb39a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ impl<D> Wallet<D> {
}
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 :)
Expand Down

0 comments on commit 9bb39a3

Please sign in to comment.