MetaplexNFTPacksProgram.transferPackAuthority constructor

MetaplexNFTPacksProgram.transferPackAuthority({
  1. required SolAddress packSet,
  2. required SolAddress currentAuthority,
  3. required SolAddress newAuthority,
})

Implementation

factory MetaplexNFTPacksProgram.transferPackAuthority({
  required SolAddress packSet,
  required SolAddress currentAuthority,
  required SolAddress newAuthority,
}) {
  return MetaplexNFTPacksProgram(
      keys: [
        packSet.toWritable(),
        currentAuthority.toSigner(),
        newAuthority.toReadOnly()
      ],
      programId: MetaplexNFTPacksProgramConst.programId,
      layout: const MetaplexNFTPacksTransferPackAuthorityLayout());
}