Skip to content

Commit 9d78913

Browse files
decompress batch idempotent
1 parent 117d354 commit 9d78913

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

program-tests/sdk-test/src/decompress_to_pda.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ pub fn decompress_to_pda(
5555
rent_payer,
5656
system_program,
5757
&custom_seeds,
58-
&instruction_data.additional_seed,
5958
)?;
6059

6160
// do something with pda_account...

program-tests/sdk-test/src/sdk/decompress_idempotent.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ pub fn decompress_idempotent<'info, A>(
4545
rent_payer: &AccountInfo<'info>,
4646
system_program: &AccountInfo<'info>,
4747
custom_seeds: &[&[u8]],
48-
additional_seed: &[u8; 32],
4948
) -> Result<(), LightSdkError>
5049
where
5150
A: DataHasher
@@ -71,7 +70,7 @@ where
7170
// CHECK: PDA is derived from compressed account address.
7271
let mut seeds: Vec<&[u8]> = custom_seeds.to_vec();
7372
seeds.push(&compressed_address);
74-
seeds.push(additional_seed);
73+
7574
let (pda_pubkey, pda_bump) = Pubkey::find_program_address(&seeds, owner_program); // TODO: consider passing the bump.
7675

7776
// Verify PDA matches
@@ -200,7 +199,7 @@ mod tests {
200199
data: instruction_data.data,
201200
};
202201

203-
let mut compressed_account = LightAccount::<'_, MyPdaAccount>::new_mut(
202+
let compressed_account = LightAccount::<'_, MyPdaAccount>::new_mut(
204203
&crate::ID,
205204
&instruction_data.compressed_account_meta.unwrap(),
206205
account_data,
@@ -219,7 +218,6 @@ mod tests {
219218
rent_payer,
220219
system_program,
221220
&custom_seeds,
222-
&instruction_data.additional_seed,
223221
)?;
224222

225223
msg!("Idempotent decompression completed successfully");

0 commit comments

Comments
 (0)