SPLTokenMetaDataProgram.update constructor
SPLTokenMetaDataProgram.update({
- required SPLTokenMetaDataUpdateLayout layout,
- required SolAddress programId,
- required SolAddress metadata,
- required SolAddress updateAuthority,
Updates a field in a token-metadata account.
Implementation
factory SPLTokenMetaDataProgram.update({
required SPLTokenMetaDataUpdateLayout layout,
required SolAddress programId,
/// Metadata account
required SolAddress metadata,
/// Update authority
required SolAddress updateAuthority,
}) {
return SPLTokenMetaDataProgram(
layout: layout,
keys: [
metadata.toWritable(),
updateAuthority.toSigner(),
],
programId: programId);
}