Skip to content

Commit 986335d

Browse files
wip
1 parent 13a82ca commit 986335d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use solana_program::account_info::AccountInfo;
99

1010
use crate::sdk::decompress_idempotent::decompress_idempotent;
1111

12-
pub const SLOTS_UNTIL_COMPRESSION: u64 = 100;
12+
pub const SLOTS_UNTIL_COMPRESSION: u64 = 10_000;
1313

1414
/// Decompresses a compressed account into a PDA idempotently.
1515
pub fn decompress_to_pda(
@@ -23,7 +23,7 @@ pub fn decompress_to_pda(
2323
// Get accounts
2424
let fee_payer = &accounts[0];
2525
let pda_account = &accounts[1];
26-
let rent_payer = &accounts[2]; // Account that pays for PDA rent
26+
let rent_payer = &accounts[2]; // Anyone can pay.
2727
let system_program = &accounts[3];
2828

2929
// Cpi accounts
@@ -34,6 +34,7 @@ pub fn decompress_to_pda(
3434
);
3535

3636
// Custom seeds for PDA derivation
37+
// Caller program should provide the seeds used for their onchain PDA.
3738
let custom_seeds: Vec<&[u8]> = vec![b"decompressed_pda"];
3839

3940
// Call the SDK function to decompress idempotently

0 commit comments

Comments
 (0)