Skip to content

Commit fecf709

Browse files
committed
Add check for unwrap lamports
1 parent 70797ba commit fecf709

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

p-token/src/processor/batch.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ pub fn process_batch(mut accounts: &[AccountInfo], mut instruction_data: &[u8])
8484
// 13 - ApproveChecked
8585
// 22 - InitializeImmutableOwner
8686
// 38 - WithdrawExcessLamports
87-
4..=13 | 22 | 38 => {
87+
// 45 - UnwrapLamports
88+
4..=13 | 22 | 38 | 45 => {
8889
let [a0, ..] = ix_accounts else {
8990
return Err(ProgramError::NotEnoughAccountKeys);
9091
};

0 commit comments

Comments
 (0)