_
This commit is contained in:
@ -10,7 +10,7 @@ pub fn parse_bpf_loader(
|
|||||||
account_keys: &[Pubkey],
|
account_keys: &[Pubkey],
|
||||||
) -> Result<ParsedInstructionEnum, ParseInstructionError> {
|
) -> Result<ParsedInstructionEnum, ParseInstructionError> {
|
||||||
let bpf_loader_instruction: LoaderInstruction = deserialize(&instruction.data)
|
let bpf_loader_instruction: LoaderInstruction = deserialize(&instruction.data)
|
||||||
.map_err(|err| ParseInstructionError::InstructionNotParsable(ParsableProgram::BpfLoader))?;
|
.map_err(|_| ParseInstructionError::InstructionNotParsable(ParsableProgram::BpfLoader))?;
|
||||||
if instruction.accounts.is_empty() || instruction.accounts[0] as usize >= account_keys.len() {
|
if instruction.accounts.is_empty() || instruction.accounts[0] as usize >= account_keys.len() {
|
||||||
return Err(ParseInstructionError::InstructionKeyMismatch(
|
return Err(ParseInstructionError::InstructionKeyMismatch(
|
||||||
ParsableProgram::BpfLoader,
|
ParsableProgram::BpfLoader,
|
||||||
|
Reference in New Issue
Block a user