descriptors: remove TODO in assertions, explain instead

This commit is contained in:
Antoine Poinsot 2022-12-05 10:05:26 +01:00
parent 62067f0030
commit 628ed3d0ed
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -338,12 +338,12 @@ impl MultipathDescriptor {
}
let owner_pk = Miniscript::from_ast(Terminal::Check(sync::Arc::from(
Miniscript::from_ast(Terminal::PkK(owner_key)).expect("TODO"),
Miniscript::from_ast(Terminal::PkK(owner_key)).expect("pk_k is a valid Miniscript"),
)))
.expect("Well typed");
let heir_pkh = Miniscript::from_ast(Terminal::Check(sync::Arc::from(
Miniscript::from_ast(Terminal::PkH(heir_key)).expect("TODO"),
Miniscript::from_ast(Terminal::PkH(heir_key)).expect("pk_h is a valid Miniscript"),
)))
.expect("Well typed");