@@ -18,6 +18,7 @@ import {
1818 createCreateMasterEditionV3Instruction ,
1919 createCreateMetadataAccountV3Instruction ,
2020 createSetCollectionSizeInstruction ,
21+ TokenStandard ,
2122} from '@metaplex-foundation/mpl-token-metadata' ;
2223import {
2324 ConcurrentMerkleTreeAccount ,
@@ -38,7 +39,7 @@ import {
3839 prependComputeIxs ,
3940 TMETA_PROG_ID ,
4041} from '@tensor-hq/tensor-common' ;
41- import { makeMintTwoAta } from './ata' ;
42+ import { createNft , makeMintTwoAta } from './ata' ;
4243import { buildAndSendTx , makeNTraders } from './txs' ;
4344
4445export const DEFAULT_DEPTH_SIZE : ValidDepthSizePair = {
@@ -494,7 +495,7 @@ export const verifyCNftCreator = async ({
494495 return { metadata, leaf, assetId } ;
495496} ;
496497
497- export const makeNfts = async ( {
498+ export const makeTestNfts = async ( {
498499 conn,
499500 payer,
500501 cnftMints = 0 ,
@@ -558,6 +559,18 @@ export const makeNfts = async ({
558559 share : 100 / nrCreators ,
559560 } ) ) ;
560561
562+ // --------------------------------------- create collection
563+
564+ await createNft ( {
565+ conn,
566+ payer,
567+ owner : treeOwner ,
568+ mint : collection ,
569+ tokenStandard : TokenStandard . NonFungible ,
570+ royaltyBps : sellerFeeBasisPoints ,
571+ setCollSize : 50 ,
572+ } ) ;
573+
561574 // --------------------------------------- pnfts
562575
563576 const traderAPnfts : Awaited < ReturnType < typeof makeMintTwoAta > > [ ] = [ ] ;
@@ -574,6 +587,7 @@ export const makeNfts = async ({
574587 creators,
575588 collection,
576589 collectionVerified : false ,
590+ createCollection : false ,
577591 programmable : true , // pnfts cannot verify currently
578592 ruleSetAddr,
579593 } ) ,
@@ -591,13 +605,14 @@ export const makeNfts = async ({
591605 creators,
592606 collection,
593607 collectionVerified : false , // pnfts cannot verify currently
608+ createCollection : false ,
594609 programmable : true ,
595610 ruleSetAddr,
596611 } ) ,
597612 ) ;
598613 }
599614
600- // --------------------------------------- cnfts (must come after collection mint created above)
615+ // --------------------------------------- cnfts
601616
602617 //has to be sequential to ensure index is correct
603618 let leaves : {
0 commit comments