SPLTokenMetaDataProgram.removeField constructor
SPLTokenMetaDataProgram.removeField({
- required SPLTokenMetaDataRemoveFieldLayout layout,
- required SolAddress programId,
- required SolAddress metadata,
- required SolAddress updateAuthority,
Removes a key-value pair in a token-metadata account.
Implementation
factory SPLTokenMetaDataProgram.removeField({
required SPLTokenMetaDataRemoveFieldLayout 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);
}