@@ -439,12 +439,22 @@ func insertMintAnchorTx(ctx context.Context, q PendingAssetStore,
439
439
},
440
440
)
441
441
442
+ outPoint := wire.OutPoint {
443
+ Hash : anchorPackage .Pkt .UnsignedTx .TxHash (),
444
+ Index : uint32 (preCommitOut .OutIdx ),
445
+ }
446
+ outPointBytes , err := encodeOutpoint (outPoint )
447
+ if err != nil {
448
+ return fmt .Errorf ("unable to encode outpoint: %w" , err )
449
+ }
450
+
442
451
_ , err = q .UpsertMintAnchorUniCommitment (
443
452
ctx , MintAnchorUniCommitParams {
444
453
BatchKey : rawBatchKey ,
445
454
TxOutputIndex : int32 (preCommitOut .OutIdx ),
446
455
TaprootInternalKeyID : internalKeyID ,
447
456
GroupKey : groupPubKey ,
457
+ Outpoint : outPointBytes ,
448
458
},
449
459
)
450
460
if err != nil {
@@ -1625,12 +1635,22 @@ func upsertPreCommit(ctx context.Context, q PendingAssetStore,
1625
1635
},
1626
1636
)
1627
1637
1638
+ outPoint := wire.OutPoint {
1639
+ Hash : genesisPkt .Pkt .UnsignedTx .TxHash (),
1640
+ Index : preCommit .OutIdx ,
1641
+ }
1642
+ outPointBytes , err := encodeOutpoint (outPoint )
1643
+ if err != nil {
1644
+ return fmt .Errorf ("unable to encode outpoint: %w" , err )
1645
+ }
1646
+
1628
1647
_ , err = q .UpsertMintAnchorUniCommitment (
1629
1648
ctx , MintAnchorUniCommitParams {
1630
1649
BatchKey : batchKey ,
1631
1650
TxOutputIndex : int32 (preCommit .OutIdx ),
1632
1651
TaprootInternalKeyID : internalKeyID ,
1633
1652
GroupKey : groupPubKeyBytes ,
1653
+ Outpoint : outPointBytes ,
1634
1654
},
1635
1655
)
1636
1656
if err != nil {
0 commit comments