MetaplexTokenMetaDataProgram.convertMasterEditionV1ToV2 constructor

MetaplexTokenMetaDataProgram.convertMasterEditionV1ToV2({
  1. required SolAddress masterEdition,
  2. required SolAddress oneTimeAuth,
  3. required SolAddress printingMint,
})

Implementation

factory MetaplexTokenMetaDataProgram.convertMasterEditionV1ToV2({
  required SolAddress masterEdition,
  required SolAddress oneTimeAuth,
  required SolAddress printingMint,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        masterEdition.toWritable(),
        oneTimeAuth.toWritable(),
        printingMint.toWritable()
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout: MetaplexTokenMetaDataConvertMasterEditionV1ToV2Layout());
}