File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
#[ inline( always) ]
8
8
pub fn process_approve_checked ( accounts : & [ AccountInfo ] , instruction_data : & [ u8 ] ) -> ProgramResult {
9
9
// expected u64 (8) + u8 (1)
10
- let ( amount, decimals) = if instruction_data. len ( ) = = 9 {
10
+ let ( amount, decimals) = if instruction_data. len ( ) > = 9 {
11
11
let ( amount, decimals) = instruction_data. split_at ( U64_BYTES ) ;
12
12
(
13
13
// SAFETY: The size of `amount` is `U64_BYTES` bytes.
Original file line number Diff line number Diff line change 7
7
#[ inline( always) ]
8
8
pub fn process_burn_checked ( accounts : & [ AccountInfo ] , instruction_data : & [ u8 ] ) -> ProgramResult {
9
9
// expected u64 (8) + u8 (1)
10
- let ( amount, decimals) = if instruction_data. len ( ) = = 9 {
10
+ let ( amount, decimals) = if instruction_data. len ( ) > = 9 {
11
11
let ( amount, decimals) = instruction_data. split_at ( U64_BYTES ) ;
12
12
(
13
13
// SAFETY: The size of `amount` is `U64_BYTES` bytes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pub fn process_transfer_checked(
10
10
instruction_data : & [ u8 ] ,
11
11
) -> ProgramResult {
12
12
// expected u64 (8) + u8 (1)
13
- let ( amount, decimals) = if instruction_data. len ( ) = = 9 {
13
+ let ( amount, decimals) = if instruction_data. len ( ) > = 9 {
14
14
let ( amount, decimals) = instruction_data. split_at ( U64_BYTES ) ;
15
15
(
16
16
// SAFETY: The size of `amount` is `U64_BYTES` bytes.
You can’t perform that action at this time.
0 commit comments