Skip to content

Commit 322a1b5

Browse files
committed
Update discriminator on tests
1 parent fecf709 commit 322a1b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

p-token/tests/unwrap_lamports.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use {
55
mollusk_svm::{result::Check, Mollusk},
66
pinocchio_token_interface::{
77
error::TokenError,
8+
instruction::TokenInstruction,
89
native_mint,
910
state::{
1011
account::Account as TokenAccount, account_state::AccountState, load_mut_unchecked,
@@ -65,7 +66,7 @@ fn unwrap_lamports_instruction(
6566
];
6667

6768
// Start with the batch discriminator
68-
let mut data: Vec<u8> = vec![39u8];
69+
let mut data: Vec<u8> = vec![TokenInstruction::UnwrapLamports as u8];
6970
data.extend_from_slice(&amount.to_le_bytes());
7071

7172
Ok(Instruction {

0 commit comments

Comments
 (0)