From 2b57e2a41f18acb62c0b3723fa158de5d9432799 Mon Sep 17 00:00:00 2001 From: Michael Danenberg <56533526+danenbm@users.noreply.github.com> Date: Fri, 16 Feb 2024 23:22:01 -0800 Subject: [PATCH] Fix process_instruction --- programs/mpl-asset/src/processor/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/programs/mpl-asset/src/processor/mod.rs b/programs/mpl-asset/src/processor/mod.rs index 6d327753..9abce78a 100644 --- a/programs/mpl-asset/src/processor/mod.rs +++ b/programs/mpl-asset/src/processor/mod.rs @@ -3,7 +3,10 @@ mod create; use create::*; use borsh::BorshDeserialize; -use solana_program::{account_info::AccountInfo, entrypoint::ProgramResult, msg, pubkey::Pubkey}; +use solana_program::{ + account_info::AccountInfo, entrypoint::ProgramResult, msg, program_error::ProgramError, + pubkey::Pubkey, +}; use crate::instruction::MplAssetInstruction; @@ -18,5 +21,6 @@ pub fn process_instruction<'a>( msg!("Instruction: Create"); create(accounts, args) } + _ => Err(ProgramError::InvalidInstructionData), } }