Function mpl_token_metadata::processor::process_instruction
source · pub fn process_instruction<'a>(
program_id: &'a Pubkey,
accounts: &'a [AccountInfo<'a>],
input: &[u8]
) -> ProgramResult
Expand description
Process Token Metadata instructions.
The processor is divided into two parts:
- It first tries to match the instruction into the new API;
- If it is not one of the new instructions, it checks that any metadata account is not a pNFT before forwarding the transaction processing to the “legacy” processor.