File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ impl DefiniteDescriptorKey {
1037
1037
///
1038
1038
/// Returns `None` if the key contains a wildcard
1039
1039
fn new ( key : DescriptorPublicKey ) -> Option < Self > {
1040
- if key. has_wildcard ( ) {
1040
+ if key. has_wildcard ( ) || key . is_multipath ( ) {
1041
1041
None
1042
1042
} else {
1043
1043
Some ( Self ( key) )
@@ -1071,7 +1071,7 @@ impl FromStr for DefiniteDescriptorKey {
1071
1071
fn from_str ( s : & str ) -> Result < Self , Self :: Err > {
1072
1072
let inner = DescriptorPublicKey :: from_str ( s) ?;
1073
1073
DefiniteDescriptorKey :: new ( inner) . ok_or ( DescriptorKeyParseError (
1074
- "cannot parse key with a wilcard as a DerivedDescriptorKey" ,
1074
+ "cannot parse multi-path keys or keys with a wilcard as a DerivedDescriptorKey" ,
1075
1075
) )
1076
1076
}
1077
1077
}
You can’t perform that action at this time.
0 commit comments