Skip to content

Commit 74cc217

Browse files
committed
tappsbt rename PsbtKeyTypeOutput{=>Tap}AssetVersion
We rename the variable to match the naming style of the other ones.
1 parent 77866ef commit 74cc217

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tappsbt/decode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func (o *VOutput) decode(pOut psbt.POutput, txOut *wire.TxOut) error {
279279
),
280280
},
281281
{
282-
key: PsbtKeyTypeOutputAssetVersion,
282+
key: PsbtKeyTypeOutputTapAssetVersion,
283283
decoder: tlvDecoder(
284284
&o.AssetVersion, vOutputAssetVersionDecoder,
285285
),

tappsbt/encode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func (o *VOutput) encode(coinType uint32) (psbt.POutput, *wire.TxOut, error) {
278278
),
279279
},
280280
{
281-
key: PsbtKeyTypeOutputAssetVersion,
281+
key: PsbtKeyTypeOutputTapAssetVersion,
282282
encoder: tlvEncoder(
283283
&o.AssetVersion, vOutputAssetVersionEncoder,
284284
),

tappsbt/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var (
5151
PsbtKeyTypeOutputTapAsset = []byte{0x76}
5252
PsbtKeyTypeOutputTapSplitAsset = []byte{0x77}
5353
PsbtKeyTypeOutputTapAnchorTapscriptSibling = []byte{0x78}
54-
PsbtKeyTypeOutputAssetVersion = []byte{0x79}
54+
PsbtKeyTypeOutputTapAssetVersion = []byte{0x79}
5555
)
5656

5757
// The following keys are used as custom fields on the BTC level anchor

0 commit comments

Comments
 (0)