Skip to content

Commit f55d41d

Browse files
committed
Merge #65: descriptor: fix FromStr impl for elcovwsh descriptors
ebeb008 descriptor: fix FromStr impl for elcovwsh descriptors (Andrew Poelstra) Pull request description: Fixes #63 ACKs for top commit: RCasatta: utACK ebeb008 Tree-SHA512: 719edb4b7ada13ac27a107e5cbc41f728cf16b1b6994fad8a6859e8fc0d9f1c566d0f68f6e0e30fae3739cbfd88cc707336fb6f061a06fa03ef11c88331ab14a
2 parents af410f6 + ebeb008 commit f55d41d

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)