File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -405,7 +405,7 @@ where
405
405
Ok ( Descriptor :: ShWsh ( sub) )
406
406
}
407
407
( "wpkh" , 1 ) => expression:: terminal ( & newtop. args [ 0 ] , |pk| {
408
- str :: FromStr :: from_str ( pk) . map ( Descriptor :: ShWpkh )
408
+ MiniscriptKey :: from_str ( pk, true ) . map ( Descriptor :: ShWpkh )
409
409
} ) ,
410
410
_ => {
411
411
let sub = Miniscript :: from_tree ( & top. args [ 0 ] ) ?;
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ where
365
365
}
366
366
let mut unwrapped = match ( frag_name, top. args . len ( ) ) {
367
367
( "pk_k" , 1 ) => expression:: terminal ( & top. args [ 0 ] , |x| {
368
- str :: FromStr :: from_str ( x) . map ( Terminal :: PkK )
368
+ MiniscriptKey :: from_str ( x, false ) . map ( Terminal :: PkK )
369
369
} ) ,
370
370
( "pk_h" , 1 ) => {
371
371
expression:: terminal ( & top. args [ 0 ] , |x| Pk :: Hash :: from_str ( x) . map ( Terminal :: PkH ) )
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ where
382
382
}
383
383
match ( frag_name, top. args . len ( ) as u32 ) {
384
384
( "pk" , 1 ) => expression:: terminal ( & top. args [ 0 ] , |pk| {
385
- str :: FromStr :: from_str ( pk) . map ( Policy :: Key )
385
+ MiniscriptKey :: from_str ( pk, false ) . map ( Policy :: Key )
386
386
} ) ,
387
387
( "after" , 1 ) => expression:: terminal ( & top. args [ 0 ] , |x| {
388
388
expression:: parse_num ( x) . map ( Policy :: After )
You can’t perform that action at this time.
0 commit comments