Remove errant print

This commit is contained in:
Tyera Eulberg
2020-10-20 09:02:51 -06:00
parent aa6406f263
commit f33171b32f

View File

@ -9,11 +9,8 @@ pub fn parse_bpf_loader(
instruction: &CompiledInstruction,
account_keys: &[Pubkey],
) -> Result<ParsedInstructionEnum, ParseInstructionError> {
let bpf_loader_instruction: LoaderInstruction =
deserialize(&instruction.data).map_err(|err| {
println!("{:?}", err);
ParseInstructionError::InstructionNotParsable(ParsableProgram::BpfLoader)
})?;
let bpf_loader_instruction: LoaderInstruction = deserialize(&instruction.data)
.map_err(|_| ParseInstructionError::InstructionNotParsable(ParsableProgram::BpfLoader))?;
if instruction.accounts.is_empty() || instruction.accounts[0] as usize >= account_keys.len() {
return Err(ParseInstructionError::InstructionKeyMismatch(
ParsableProgram::BpfLoader,