Skip to content

Commit df7e7c3

Browse files
committed
Another relax length check
1 parent 16d3839 commit df7e7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p-token/src/processor/mint_to_checked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use {
77
#[inline(always)]
88
pub fn process_mint_to_checked(accounts: &[AccountInfo], instruction_data: &[u8]) -> ProgramResult {
99
// expected u64 (8) + u8 (1)
10-
let (amount, decimals) = if instruction_data.len() == 9 {
10+
let (amount, decimals) = if instruction_data.len() >= 9 {
1111
let (amount, decimals) = instruction_data.split_at(U64_BYTES);
1212
(
1313
// SAFETY: The size of `amount` is `U64_BYTES` bytes.

0 commit comments

Comments
 (0)