Skip to content

Commit

Permalink
Fix process_instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
danenbm committed Feb 17, 2024
1 parent db00a23 commit 2b57e2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion programs/mpl-asset/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -18,5 +21,6 @@ pub fn process_instruction<'a>(
msg!("Instruction: Create");
create(accounts, args)
}
_ => Err(ProgramError::InvalidInstructionData),
}
}

0 comments on commit 2b57e2a

Please sign in to comment.