From 628ed3d0ed3997a64d8d0d92206842ef5445e2fa Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Mon, 5 Dec 2022 10:05:26 +0100 Subject: [PATCH] descriptors: remove TODO in assertions, explain instead --- src/descriptors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/descriptors.rs b/src/descriptors.rs index 2dc6e300..772ea959 100644 --- a/src/descriptors.rs +++ b/src/descriptors.rs @@ -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");