@@ -512,7 +512,9 @@ func TestCommitMintingBatchSeedlings(t *testing.T) {
512512 t , assetStore , ctx , mintingBatch .Seedlings ,
513513 )
514514 _ , randSiblingHash := addRandSiblingToBatch (t , mintingBatch )
515- err := assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ))
515+ err := assetStore .CommitMintingBatch (
516+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
517+ )
516518 require .NoError (t , err )
517519
518520 batchKey := mintingBatch .BatchKey .PubKey
@@ -616,7 +618,9 @@ func TestCommitMintingBatchSeedlings(t *testing.T) {
616618 mintingBatch = tapgarden .RandMintingBatch (
617619 t , tapgarden .WithTotalSeedlings (numSeedlings ),
618620 )
619- err = assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ))
621+ err = assetStore .CommitMintingBatch (
622+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
623+ )
620624 require .NoError (t , err )
621625 mintingBatches = noError1 (t , assetStore .FetchNonFinalBatches , ctx )
622626 assertSeedlingBatchLen (t , mintingBatches , 1 , numSeedlings )
@@ -657,7 +661,9 @@ func TestInsertFetchUniCommitBatch(t *testing.T) {
657661 require .True (t , seedling .DelegationKey .IsSome ())
658662
659663 // Commit the minting batch to the database.
660- err := assetStore .CommitMintingBatch (ctx , batch , tapgarden .MockBindDataForBatch (batch ))
664+ err := assetStore .CommitMintingBatch (
665+ ctx , batch , tapgarden .MockBindDataForBatch (batch ),
666+ )
661667 require .NoError (t , err )
662668
663669 // Fetch the same batch from the database.
@@ -878,7 +884,9 @@ func TestAddSproutsToBatch(t *testing.T) {
878884 }
879885
880886 // First, we'll create a new batch, then add some sample seedlings.
881- require .NoError (t , assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch )))
887+ require .NoError (t , assetStore .CommitMintingBatch (
888+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
889+ ))
882890
883891 // Now that the batch is on disk, we'll map those seedlings to an
884892 // actual asset commitment, then insert them into the DB as sprouts.
@@ -970,7 +978,9 @@ func addRandAssets(t *testing.T, ctx context.Context,
970978 t , assetStore , ctx , mintingBatch .Seedlings ,
971979 )
972980 randSibling , randSiblingHash := addRandSiblingToBatch (t , mintingBatch )
973- require .NoError (t , assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch )))
981+ require .NoError (t , assetStore .CommitMintingBatch (
982+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
983+ ))
974984
975985 genesisPacket := mintingBatch .GenesisPacket
976986 assetRoot := seedlingsToAssetRoot (
@@ -1496,7 +1506,9 @@ func TestGroupAnchors(t *testing.T) {
14961506 t , assetStore , ctx , mintingBatch .Seedlings ,
14971507 )
14981508 addMultiAssetGroupToBatch (mintingBatch .Seedlings )
1499- err := assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ))
1509+ err := assetStore .CommitMintingBatch (
1510+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
1511+ )
15001512 require .NoError (t , err )
15011513
15021514 batchKey := mintingBatch .BatchKey .PubKey
@@ -2018,7 +2030,9 @@ func TestUpsertMintSupplyPreCommit(t *testing.T) {
20182030 storeSeedlingGroupGenesis (t , ctx , assetStore , seedling )
20192031
20202032 // Commit batch.
2021- require .NoError (t , assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch )))
2033+ require .NoError (t , assetStore .CommitMintingBatch (
2034+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
2035+ ))
20222036
20232037 // Retrieve the batch key of the batch we just inserted.
20242038 var batchKey []byte
@@ -2073,13 +2087,13 @@ func TestUpsertMintSupplyPreCommit(t *testing.T) {
20732087 internalKey2 , _ := test .RandKeyDesc (t )
20742088
20752089 storeMintSupplyPreCommit (
2076- t , * assetStore , batchKey , preCommitBind .OutputIndex , internalKey2 ,
2077- groupPubKeyBytes , preCommitOutpoint ,
2090+ t , * assetStore , batchKey , preCommitBind .OutputIndex ,
2091+ internalKey2 , groupPubKeyBytes , preCommitOutpoint ,
20782092 )
20792093
20802094 assertMintSupplyPreCommit (
2081- t , * assetStore , batchKey , preCommitBind .OutputIndex , internalKey2 ,
2082- groupPubKeyBytes , preCommitOutpoint ,
2095+ t , * assetStore , batchKey , preCommitBind .OutputIndex ,
2096+ internalKey2 , groupPubKeyBytes , preCommitOutpoint ,
20832097 )
20842098
20852099 // Upsert-ing a new group key for the same pre-commit outpoint should
@@ -2088,13 +2102,13 @@ func TestUpsertMintSupplyPreCommit(t *testing.T) {
20882102 groupPubKey2Bytes := schnorr .SerializePubKey (groupPubKey2 )
20892103
20902104 storeMintSupplyPreCommit (
2091- t , * assetStore , batchKey , preCommitBind .OutputIndex , internalKey2 ,
2092- groupPubKey2Bytes , preCommitOutpoint ,
2105+ t , * assetStore , batchKey , preCommitBind .OutputIndex ,
2106+ internalKey2 , groupPubKey2Bytes , preCommitOutpoint ,
20932107 )
20942108
20952109 assertMintSupplyPreCommit (
2096- t , * assetStore , batchKey , preCommitBind .OutputIndex , internalKey2 ,
2097- groupPubKey2Bytes , preCommitOutpoint ,
2110+ t , * assetStore , batchKey , preCommitBind .OutputIndex ,
2111+ internalKey2 , groupPubKey2Bytes , preCommitOutpoint ,
20982112 )
20992113}
21002114
@@ -2110,7 +2124,9 @@ func TestUpdateBatchStateMemoryCoherence(t *testing.T) {
21102124 ctx := context .Background ()
21112125
21122126 mintingBatch := tapgarden .RandMintingBatch (t )
2113- require .NoError (t , assetStore .CommitMintingBatch (ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch )))
2127+ require .NoError (t , assetStore .CommitMintingBatch (
2128+ ctx , mintingBatch , tapgarden .MockBindDataForBatch (mintingBatch ),
2129+ ))
21142130 require .Equal (
21152131 t , tapgarden .BatchStatePending , mintingBatch .State (),
21162132 )
@@ -2155,12 +2171,17 @@ func TestSingletonPreBroadcastBatchConstraint(t *testing.T) {
21552171
21562172 // A first Pending batch is fine.
21572173 first := tapgarden .RandMintingBatch (t )
2158- require .NoError (t , assetStore .CommitMintingBatch (ctx , first , tapgarden .MockBindDataForBatch (first )))
2174+ require .NoError (t , assetStore .CommitMintingBatch (
2175+ ctx , first , tapgarden .MockBindDataForBatch (first ),
2176+ ))
21592177
21602178 // A second Pending batch must be rejected: two rows in
21612179 // BatchStatePending violate the partial unique index.
21622180 secondPending := tapgarden .RandMintingBatch (t )
2163- err := assetStore .CommitMintingBatch (ctx , secondPending , tapgarden .MockBindDataForBatch (secondPending ))
2181+ err := assetStore .CommitMintingBatch (
2182+ ctx , secondPending ,
2183+ tapgarden .MockBindDataForBatch (secondPending ),
2184+ )
21642185 require .Error (t , err )
21652186
21662187 // Move the first batch to Frozen; it is still in the
@@ -2171,7 +2192,10 @@ func TestSingletonPreBroadcastBatchConstraint(t *testing.T) {
21712192 ))
21722193
21732194 pendingWhileFrozen := tapgarden .RandMintingBatch (t )
2174- err = assetStore .CommitMintingBatch (ctx , pendingWhileFrozen , tapgarden .MockBindDataForBatch (pendingWhileFrozen ))
2195+ err = assetStore .CommitMintingBatch (
2196+ ctx , pendingWhileFrozen ,
2197+ tapgarden .MockBindDataForBatch (pendingWhileFrozen ),
2198+ )
21752199 require .Error (t , err )
21762200
21772201 // Move the first batch out of the pre-broadcast set into
@@ -2182,7 +2206,9 @@ func TestSingletonPreBroadcastBatchConstraint(t *testing.T) {
21822206 ))
21832207
21842208 third := tapgarden .RandMintingBatch (t )
2185- require .NoError (t , assetStore .CommitMintingBatch (ctx , third , tapgarden .MockBindDataForBatch (third )))
2209+ require .NoError (t , assetStore .CommitMintingBatch (
2210+ ctx , third , tapgarden .MockBindDataForBatch (third ),
2211+ ))
21862212
21872213 // And finally: two batches both in Committed must be
21882214 // permitted -- the constraint targets only the pre-broadcast
0 commit comments