Skip to content

Commit

Permalink
Merge #65: descriptor: fix FromStr impl for elcovwsh descriptors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
apoelstra committed Dec 20, 2023
2 parents af410f6 + ebeb008 commit f55d41d
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 f55d41d

Please sign in to comment.