@@ -499,7 +499,9 @@ func TestCommitMintingBatchSeedlings(t *testing.T) {
499
499
// First, we'll write a new minting batch to disk, including an
500
500
// internal key and a set of seedlings. One random seedling will
501
501
// be a reissuance into a specific group.
502
- mintingBatch := tapgarden .RandSeedlingMintingBatch (t , numSeedlings )
502
+ mintingBatch := tapgarden .RandMintingBatch (
503
+ t , tapgarden .WithTotalSeedlings (numSeedlings ),
504
+ )
503
505
_ , randGroup , _ := addRandGroupToBatch (
504
506
t , assetStore , ctx , mintingBatch .Seedlings ,
505
507
)
@@ -600,7 +602,9 @@ func TestCommitMintingBatchSeedlings(t *testing.T) {
600
602
601
603
// Insert another normal batch into the database. We should get this
602
604
// batch back if we query for the set of non-final batches.
603
- mintingBatch = tapgarden .RandSeedlingMintingBatch (t , numSeedlings )
605
+ mintingBatch = tapgarden .RandMintingBatch (
606
+ t , tapgarden .WithTotalSeedlings (numSeedlings ),
607
+ )
604
608
err = assetStore .CommitMintingBatch (ctx , mintingBatch )
605
609
require .NoError (t , err )
606
610
mintingBatches = noError1 (t , assetStore .FetchNonFinalBatches , ctx )
@@ -791,7 +795,9 @@ func TestAddSproutsToBatch(t *testing.T) {
791
795
792
796
// First, we'll create a new batch, then add some sample seedlings.
793
797
// One random seedling will be a reissuance into a specific group.
794
- mintingBatch := tapgarden .RandSeedlingMintingBatch (t , numSeedlings )
798
+ mintingBatch := tapgarden .RandMintingBatch (
799
+ t , tapgarden .WithTotalSeedlings (numSeedlings ),
800
+ )
795
801
_ , seedlingGroups , _ := addRandGroupToBatch (
796
802
t , assetStore , ctx , mintingBatch .Seedlings ,
797
803
)
@@ -889,7 +895,9 @@ type randAssetCtx struct {
889
895
func addRandAssets (t * testing.T , ctx context.Context ,
890
896
assetStore * AssetMintingStore , numAssets int ) randAssetCtx {
891
897
892
- mintingBatch := tapgarden .RandSeedlingMintingBatch (t , numAssets )
898
+ mintingBatch := tapgarden .RandMintingBatch (
899
+ t , tapgarden .WithTotalSeedlings (numAssets ),
900
+ )
893
901
genAmt , seedlingGroups , group := addRandGroupToBatch (
894
902
t , assetStore , ctx , mintingBatch .Seedlings ,
895
903
)
@@ -1397,7 +1405,9 @@ func TestGroupAnchors(t *testing.T) {
1397
1405
// internal key and a set of seedlings. One random seedling will
1398
1406
// be a reissuance into a specific group. Two other seedlings will form
1399
1407
// a multi-asset group.
1400
- mintingBatch := tapgarden .RandSeedlingMintingBatch (t , numSeedlings )
1408
+ mintingBatch := tapgarden .RandMintingBatch (
1409
+ t , tapgarden .WithTotalSeedlings (numSeedlings ),
1410
+ )
1401
1411
_ , seedlingGroups , _ := addRandGroupToBatch (
1402
1412
t , assetStore , ctx , mintingBatch .Seedlings ,
1403
1413
)
@@ -1834,7 +1844,9 @@ func TestUpsertMintAnchorUniCommitment(t *testing.T) {
1834
1844
assetStore , _ , _ := newAssetStore (t )
1835
1845
1836
1846
// Create a new batch with one asset group seedling.
1837
- mintingBatch := tapgarden .RandSeedlingMintingBatch (t , 1 )
1847
+ mintingBatch := tapgarden .RandMintingBatch (
1848
+ t , tapgarden .WithTotalSeedlings (1 ),
1849
+ )
1838
1850
mintingBatch .UniverseCommitments = true
1839
1851
1840
1852
_ , _ , group := addRandGroupToBatch (
0 commit comments