File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
bitcoind-tests/tests/setup Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ pub fn parse_insane_ms<Ctx: ScriptContext>(
148
148
let ms =
149
149
Miniscript :: < String , Ctx > :: from_str_insane ( & ms) . expect ( "only parsing valid minsicripts" ) ;
150
150
let mut translator = StrTranslatorLoose ( 0 , pubdata) ;
151
- let ms = ms. translate_pk ( & mut translator) . unwrap ( ) ;
152
- ms
151
+ ms. translate_pk ( & mut translator) . unwrap ( )
153
152
}
154
153
155
154
// Translate Str to DescriptorPublicKey
@@ -291,6 +290,5 @@ fn subs_hash_frag(ms: &str, pubdata: &PubData) -> String {
291
290
let ms = ms. replace ( "hash256(H!)" , & format ! ( "hash256({})" , rand_hash32. to_lower_hex_string( ) ) ) ;
292
291
let ms =
293
292
ms. replace ( "ripemd160(H!)" , & format ! ( "ripemd160({})" , rand_hash20. to_lower_hex_string( ) ) ) ;
294
- let ms = ms. replace ( "hash160(H!)" , & format ! ( "hash160({})" , rand_hash20. to_lower_hex_string( ) ) ) ;
295
- ms
293
+ ms. replace ( "hash160(H!)" , & format ! ( "hash160({})" , rand_hash20. to_lower_hex_string( ) ) )
296
294
}
You can’t perform that action at this time.
0 commit comments