|
@@ -201,7 +201,6 @@ mod tests {
|
|
|
&mut source_data,
|
|
&mut source_data,
|
|
|
&spl_token_2022_program_id,
|
|
&spl_token_2022_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let mint_pubkey = Pubkey::new_unique();
|
|
let mint_pubkey = Pubkey::new_unique();
|
|
@@ -215,7 +214,6 @@ mod tests {
|
|
|
&mut mint_data,
|
|
&mut mint_data,
|
|
|
&spl_token_2022_program_id,
|
|
&spl_token_2022_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let destination_pubkey = Pubkey::new_unique();
|
|
let destination_pubkey = Pubkey::new_unique();
|
|
@@ -229,7 +227,6 @@ mod tests {
|
|
|
&mut destination_data,
|
|
&mut destination_data,
|
|
|
&spl_token_2022_program_id,
|
|
&spl_token_2022_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let authority_pubkey = Pubkey::new_unique();
|
|
let authority_pubkey = Pubkey::new_unique();
|
|
@@ -243,7 +240,6 @@ mod tests {
|
|
|
&mut authority_data,
|
|
&mut authority_data,
|
|
|
&system_program::ID,
|
|
&system_program::ID,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let validate_state_pubkey =
|
|
let validate_state_pubkey =
|
|
@@ -260,7 +256,6 @@ mod tests {
|
|
|
&mut extra_meta_1_data,
|
|
&mut extra_meta_1_data,
|
|
|
&system_program::ID,
|
|
&system_program::ID,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let extra_meta_2_pubkey = EXTRA_META_2;
|
|
let extra_meta_2_pubkey = EXTRA_META_2;
|
|
@@ -274,7 +269,6 @@ mod tests {
|
|
|
&mut extra_meta_2_data,
|
|
&mut extra_meta_2_data,
|
|
|
&system_program::ID,
|
|
&system_program::ID,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let extra_meta_3_pubkey = Pubkey::find_program_address(
|
|
let extra_meta_3_pubkey = Pubkey::find_program_address(
|
|
@@ -296,7 +290,6 @@ mod tests {
|
|
|
&mut extra_meta_3_data,
|
|
&mut extra_meta_3_data,
|
|
|
&transfer_hook_program_id,
|
|
&transfer_hook_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let extra_meta_4_pubkey = Pubkey::find_program_address(
|
|
let extra_meta_4_pubkey = Pubkey::find_program_address(
|
|
@@ -319,7 +312,6 @@ mod tests {
|
|
|
&mut extra_meta_4_data,
|
|
&mut extra_meta_4_data,
|
|
|
&transfer_hook_program_id,
|
|
&transfer_hook_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let mut validate_state_data = setup_validation_data();
|
|
let mut validate_state_data = setup_validation_data();
|
|
@@ -332,7 +324,6 @@ mod tests {
|
|
|
&mut validate_state_data,
|
|
&mut validate_state_data,
|
|
|
&transfer_hook_program_id,
|
|
&transfer_hook_program_id,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let mut transfer_hook_program_data = vec![]; // Mock
|
|
let mut transfer_hook_program_data = vec![]; // Mock
|
|
@@ -345,7 +336,6 @@ mod tests {
|
|
|
&mut transfer_hook_program_data,
|
|
&mut transfer_hook_program_data,
|
|
|
&bpf_loader_upgradeable::ID,
|
|
&bpf_loader_upgradeable::ID,
|
|
|
false,
|
|
false,
|
|
|
- 0,
|
|
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
let mut cpi_instruction = Instruction::new_with_bytes(
|
|
let mut cpi_instruction = Instruction::new_with_bytes(
|