Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit e7a59b6

Browse files
committed
Cosmetics
1 parent c59702d commit e7a59b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

program/src/processor/batch.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ pub fn process_batch(mut accounts: &[AccountInfo], mut instruction_data: &[u8])
2121
}
2222
_ => (),
2323
}
24+
2425
// SAFETY: The instruction data is guaranteed to have at least two bytes.
2526
let expected_accounts = unsafe { *instruction_data.get_unchecked(0) as usize };
2627
let data_offset = IX_HEADER_SIZE + unsafe { *instruction_data.get_unchecked(1) as usize };
28+
2729
if instruction_data.len() < data_offset {
2830
return Err(ProgramError::InvalidInstructionData);
2931
}

0 commit comments

Comments
 (0)