File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ borsh = "1.5.3"
1111squads-multisig = { git = " https://github.com/Squads-Protocol/v4" , rev = " 05f23726a094b6a5a0d97eaccf22af72373ac9c6" }
1212
1313[dependencies .trident-fuzz ]
14- version = " 0.13.0-rc.1 "
14+ version = " 0.13.0-rc.2 "
1515features = [" token" ]
1616
1717[lib ]
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use crate::common::types::launchpad_v_7::StaticAccountsInstructionAccounts;
33use crate :: common:: types:: launchpad_v_7:: * ;
44use crate :: common:: types:: * ;
55use crate :: FuzzTest ;
6+ use solana_sdk:: compute_budget:: ComputeBudgetInstruction ;
67use trident_fuzz:: fuzzing:: * ;
78
89use crate :: common:: constants:: * ;
@@ -741,9 +742,9 @@ impl FuzzTest {
741742 launchpad_v_7:: program_id ( ) ,
742743 ) )
743744 . instruction ( ) ;
744- let res = self
745- . trident
746- . process_transaction ( & [ complete_launch] , message) ;
745+
746+ let request_heap = ComputeBudgetInstruction :: request_heap_frame ( ( 8 * 32 * 1024 ) as u32 ) ;
747+ let res = self . trident . process_transaction ( & [ request_heap , complete_launch] , message) ;
747748
748749 if !res. is_success ( ) {
749750 return ;
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ use crate::common::types::launchpad_v_7::InitializeLaunchArgs;
44use crate :: FuzzTest ;
55use trident_fuzz:: fuzzing:: * ;
66
7- use crate :: common:: pda:: get_token_metadata_pda;
87use crate :: common:: pda:: get_launch_signer_pda;
8+ use crate :: common:: pda:: get_token_metadata_pda;
99use crate :: common:: token:: initialize_associated_token_account;
1010
1111pub mod launchpad;
@@ -188,15 +188,16 @@ impl FuzzTest {
188188 }
189189 } ;
190190
191-
192191 let accumulator_activation_delay_seconds: u32 = if mostly_valid {
193192 self . trident . random_from_range ( 0u32 ..=seconds_for_launch)
194193 } else {
195194 match self . trident . random_from_range ( 0u8 ..=3u8 ) {
196195 0 => 0 ,
197196 1 => MAX_SECONDS_FOR_LAUNCH . saturating_add ( 1 ) ,
198197 2 => u32:: MAX ,
199- _ => self . trident . random_from_range ( 0u32 ..=MAX_SECONDS_FOR_LAUNCH ) ,
198+ _ => self
199+ . trident
200+ . random_from_range ( 0u32 ..=MAX_SECONDS_FOR_LAUNCH ) ,
200201 }
201202 } ;
202203
@@ -294,7 +295,8 @@ impl FuzzTest {
294295 mint_authority : Pubkey ,
295296 ) -> ( Pubkey , Pubkey ) {
296297 let funder = self . trident . random_keypair ( ) ;
297- let funder_quote_account = initialize_associated_token_account ( & mut self . trident ,
298+ let funder_quote_account = initialize_associated_token_account (
299+ & mut self . trident ,
298300 self . payer . pubkey ( ) ,
299301 quote_mint,
300302 funder. pubkey ( ) ,
You can’t perform that action at this time.
0 commit comments