MetaplexTokenMetaDataProgram.updatePrimarySaleHappenedViaToken constructor

MetaplexTokenMetaDataProgram.updatePrimarySaleHappenedViaToken({
  1. required SolAddress metadata,
  2. required SolAddress owner,
  3. required SolAddress token,
})

Implementation

factory MetaplexTokenMetaDataProgram.updatePrimarySaleHappenedViaToken({
  required SolAddress metadata,
  required SolAddress owner,
  required SolAddress token,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        metadata.toWritable(),
        owner.toSigner(),
        token.toReadOnly(),
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout:
          const MetaplexTokenMetaDataUpdatePrimarySaleHappenedViaTokenLayout());
}