Skip to content

Commit ebeb008

Browse files
committed
descriptor: fix FromStr impl for elcovwsh descriptors
1 parent af410f6 commit ebeb008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl FromStr for DescriptorType {
148148
Ok(DescriptorType::WshSortedMulti)
149149
} else if s.len() >= 3 && &s[0..3] == "wsh" {
150150
Ok(DescriptorType::Wsh)
151-
} else if s.len() >= 6 && &s[0..6] == "covwsh" {
151+
} else if s.len() >= 8 && &s[0..8] == "elcovwsh" {
152152
Ok(DescriptorType::Cov)
153153
} else {
154154
Ok(DescriptorType::Bare)

0 commit comments

Comments
 (0)