MetaplexTokenMetaDataProgram.updateMetadataAccountV2 constructor

MetaplexTokenMetaDataProgram.updateMetadataAccountV2({
  1. required SolAddress metadata,
  2. required SolAddress updateAuthority,
  3. required MetaplexTokenMetaDataUpdateMetadataAccountV2Layout layout,
})

Implementation

factory MetaplexTokenMetaDataProgram.updateMetadataAccountV2({
  required SolAddress metadata,
  required SolAddress updateAuthority,
  required MetaplexTokenMetaDataUpdateMetadataAccountV2Layout layout,
}) {
  return MetaplexTokenMetaDataProgram(keys: [
    metadata.toWritable(),
    updateAuthority.toSigner(),
  ], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}