File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4289,6 +4289,8 @@ pub(crate) mod test {
4289
4289
4290
4290
#[ test]
4291
4291
fn test_taproot_psbt_input_tap_tree ( ) {
4292
+ use crate :: bitcoin:: psbt:: serialize:: Deserialize ;
4293
+ use crate :: bitcoin:: psbt:: TapTree ;
4292
4294
use bitcoin:: hashes:: hex:: FromHex ;
4293
4295
use bitcoin:: util:: taproot;
4294
4296
@@ -4328,6 +4330,11 @@ pub(crate) mod test {
4328
4330
psbt. inputs[ 0 ] . tap_internal_key,
4329
4331
psbt. outputs[ 0 ] . tap_internal_key
4330
4332
) ;
4333
+
4334
+ assert_eq ! (
4335
+ psbt. outputs[ 0 ] . tap_tree,
4336
+ Some ( TapTree :: deserialize( & Vec :: <u8 >:: from_hex( "01c022208aee2b8120a5f157f1223f72b5e62b825831a27a9fdf427db7cc697494d4a642ac01c0222051494dc22e24a32fe9dcfbd7e85faf345fa1df296fb49d156e859ef345201295ac" , ) . unwrap( ) ) . unwrap( ) )
4337
+ ) ;
4331
4338
}
4332
4339
4333
4340
#[ test]
You can’t perform that action at this time.
0 commit comments