Skip to content

Commit affb0ef

Browse files
committed
Fix lint
1 parent 3322e19 commit affb0ef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

p-token/src/processor/batch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ pub fn process_batch(mut accounts: &[AccountInfo], mut instruction_data: &[u8])
4646
)
4747
};
4848

49-
// `Transfer` and `TransferChecked` instructions require specific account ownership
50-
// checks when executed in a batch since account ownership is checked by the runtime
51-
// at the end of the batch processing only.
49+
// `Transfer` and `TransferChecked` instructions require specific account
50+
// ownership checks when executed in a batch since account ownership is
51+
// checked by the runtime at the end of the batch processing only.
5252
match ix_data.first() {
5353
// 3 - Transfer
5454
Some(3) => {

p-token/tests/batch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ fn create_token_account(
251251
token.set_native_amount(amount);
252252

253253
if is_native {
254-
lamports += amount;
254+
lamports = lamports.saturating_add(amount);
255255
}
256256

257257
Account {

0 commit comments

Comments
 (0)