Skip to content

Commit 75d16e3

Browse files
committed
Implement From<TapTree> for TaprootBuilder
1 parent d456e65 commit 75d16e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/util/psbt/map/output.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ impl PartialEq for TapTree {
125125

126126
impl Eq for TapTree {}
127127

128+
impl From<TapTree> for TaprootBuilder {
129+
#[inline]
130+
fn from(tree: TapTree) -> Self {
131+
tree.into_builder()
132+
}
133+
}
134+
128135
impl TapTree {
129136
/// Gets the inner node info as the builder is finalized.
130137
pub fn node_info(&self) -> &NodeInfo {

0 commit comments

Comments
 (0)