Skip to content

Commit f83f62b

Browse files
committed
tr fixup
1 parent 6393215 commit f83f62b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/descriptor/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
300300
}
301301

302302
/// Create new tr descriptor
303-
/// Errors when miniscript exceeds resource limits under Segwitv0 context
303+
/// Errors when miniscript exceeds resource limits under Tap context
304304
pub fn new_tr(key: Pk, script: Option<tr::TapTree<Pk>>) -> Result<Self, Error> {
305305
Ok(Descriptor::Tr(Tr::new(key, script)?))
306306
}
@@ -634,6 +634,7 @@ where
634634
("wpkh", 1) => Descriptor::Wpkh(Wpkh::from_tree(top)?),
635635
("sh", 1) => Descriptor::Sh(Sh::from_tree(top)?),
636636
("wsh", 1) => Descriptor::Wsh(Wsh::from_tree(top)?),
637+
("tr", _) => Descriptor::Tr(Tr::from_tree(top)?),
637638
_ => Descriptor::Bare(Bare::from_tree(top)?),
638639
})
639640
}

0 commit comments

Comments
 (0)