Skip to content

Commit

Permalink
descriptor: fix FromStr impl for elcovwsh descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Nov 27, 2023
1 parent af410f6 commit ebeb008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descriptor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl FromStr for DescriptorType {
Ok(DescriptorType::WshSortedMulti)
} else if s.len() >= 3 && &s[0..3] == "wsh" {
Ok(DescriptorType::Wsh)
} else if s.len() >= 6 && &s[0..6] == "covwsh" {
} else if s.len() >= 8 && &s[0..8] == "elcovwsh" {
Ok(DescriptorType::Cov)
} else {
Ok(DescriptorType::Bare)
Expand Down

0 comments on commit ebeb008

Please sign in to comment.