@@ -382,7 +382,7 @@ struct PSBTInput
382382 }
383383
384384 // Type is compact size uint at beginning of key
385- SpanReader skey{s. GetVersion (), key};
385+ SpanReader skey{key};
386386 uint64_t type = ReadCompactSize (skey);
387387
388388 // Do stuff based on type
@@ -590,7 +590,7 @@ struct PSBTInput
590590 } else if (key.size () != 65 ) {
591591 throw std::ios_base::failure (" Input Taproot script signature key is not 65 bytes" );
592592 }
593- SpanReader s_key{s. GetVersion (), Span{key}.subspan (1 )};
593+ SpanReader s_key{Span{key}.subspan (1 )};
594594 XOnlyPubKey xonly;
595595 uint256 hash;
596596 s_key >> xonly;
@@ -632,7 +632,7 @@ struct PSBTInput
632632 } else if (key.size () != 33 ) {
633633 throw std::ios_base::failure (" Input Taproot BIP32 keypath key is not at 33 bytes" );
634634 }
635- SpanReader s_key{s. GetVersion (), Span{key}.subspan (1 )};
635+ SpanReader s_key{Span{key}.subspan (1 )};
636636 XOnlyPubKey xonly;
637637 s_key >> xonly;
638638 std::set<uint256> leaf_hashes;
@@ -807,7 +807,7 @@ struct PSBTOutput
807807 }
808808
809809 // Type is compact size uint at beginning of key
810- SpanReader skey{s. GetVersion (), key};
810+ SpanReader skey{key};
811811 uint64_t type = ReadCompactSize (skey);
812812
813813 // Do stuff based on type
@@ -856,7 +856,7 @@ struct PSBTOutput
856856 }
857857 std::vector<unsigned char > tree_v;
858858 s >> tree_v;
859- SpanReader s_tree{s. GetVersion (), tree_v};
859+ SpanReader s_tree{tree_v};
860860 if (s_tree.empty ()) {
861861 throw std::ios_base::failure (" Output Taproot tree must not be empty" );
862862 }
@@ -1060,7 +1060,7 @@ struct PartiallySignedTransaction
10601060 }
10611061
10621062 // Type is compact size uint at beginning of key
1063- SpanReader skey{s. GetVersion (), key};
1063+ SpanReader skey{key};
10641064 uint64_t type = ReadCompactSize (skey);
10651065
10661066 // Do stuff based on type
0 commit comments