@@ -1339,8 +1339,9 @@ pub fn test_process_mint_to(
13391339 #[ cfg( feature = "assumptions" ) ]
13401340 {
13411341 // Do not execute if adding to the account balance would overflow.
1342- // shared::mint_to.rs,L68 is based on the assumption that initial_amount <= mint.supply
1343- // and therefore cannot overflow because the minting itself would already error out.
1342+ // shared::mint_to.rs,L68 is based on the assumption that initial_amount <=
1343+ // mint.supply and therefore cannot overflow because the minting itself
1344+ // would already error out.
13441345 let amount = unsafe { u64:: from_le_bytes ( * ( instruction_data. as_ptr ( ) as * const [ u8 ; 8 ] ) ) } ;
13451346 if initial_amount. checked_add ( amount) . is_none ( ) {
13461347 return Err ( ProgramError :: Custom ( 99 ) ) ;
@@ -3946,8 +3947,9 @@ fn test_process_mint_to_checked(
39463947 #[ cfg( feature = "assumptions" ) ]
39473948 {
39483949 // Do not execute if adding to the account balance would overflow.
3949- // shared::mint_to.rs,L68 is based on the assumption that initial_amount <= mint.supply
3950- // and therefore cannot overflow because the minting itself would already error out.
3950+ // shared::mint_to.rs,L68 is based on the assumption that initial_amount <=
3951+ // mint.supply and therefore cannot overflow because the minting itself
3952+ // would already error out.
39513953 let amount = unsafe { u64:: from_le_bytes ( * ( instruction_data. as_ptr ( ) as * const [ u8 ; 8 ] ) ) } ;
39523954 if initial_amount. checked_add ( amount) . is_none ( ) {
39533955 return Err ( ProgramError :: Custom ( 99 ) ) ;
0 commit comments