spl-token-collection 0.1.0

Solana Program Library Token Collection
Documentation
//! Program entrypoint

use {
    crate::processor,
    solana_program::{
        account_info::AccountInfo, entrypoint, entrypoint::ProgramResult,
        program_error::PrintProgramError, pubkey::Pubkey,
    },
    spl_token_group_interface::error::TokenGroupError,
};

entrypoint!(process_instruction);
fn process_instruction(
    program_id: &Pubkey,
    accounts: &[AccountInfo],
    instruction_data: &[u8],
) -> ProgramResult {
    if let Err(error) = processor::process(program_id, accounts, instruction_data) {
        error.print::<TokenGroupError>();
        return Err(error);
    }
    Ok(())
}