MetaplexTokenMetaDataProgram.collect constructor

MetaplexTokenMetaDataProgram.collect({
  1. required SolAddress authority,
  2. required SolAddress recipient,
})

Implementation

factory MetaplexTokenMetaDataProgram.collect({
  required SolAddress authority,
  required SolAddress recipient,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        authority.toSigner(),
        recipient.toReadOnly(),
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout: MetaplexTokenMetaDataCollectLayout());
}