We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d3839 commit df7e7c3Copy full SHA for df7e7c3
p-token/src/processor/mint_to_checked.rs
@@ -7,7 +7,7 @@ use {
7
#[inline(always)]
8
pub fn process_mint_to_checked(accounts: &[AccountInfo], instruction_data: &[u8]) -> ProgramResult {
9
// expected u64 (8) + u8 (1)
10
- let (amount, decimals) = if instruction_data.len() == 9 {
+ let (amount, decimals) = if instruction_data.len() >= 9 {
11
let (amount, decimals) = instruction_data.split_at(U64_BYTES);
12
(
13
// SAFETY: The size of `amount` is `U64_BYTES` bytes.
0 commit comments