Skip to content

Commit eacfc10

Browse files
committed
Update trident to rc2
1 parent ded18a2 commit eacfc10

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

trident-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ borsh = "1.5.3"
1111
squads-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"
1515
features = ["token"]
1616

1717
[lib]

trident-tests/fuzz_launchpad/methods/launchpad.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::common::types::launchpad_v_7::StaticAccountsInstructionAccounts;
33
use crate::common::types::launchpad_v_7::*;
44
use crate::common::types::*;
55
use crate::FuzzTest;
6+
use solana_sdk::compute_budget::ComputeBudgetInstruction;
67
use trident_fuzz::fuzzing::*;
78

89
use 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;

trident-tests/fuzz_launchpad/methods/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use crate::common::types::launchpad_v_7::InitializeLaunchArgs;
44
use crate::FuzzTest;
55
use trident_fuzz::fuzzing::*;
66

7-
use crate::common::pda::get_token_metadata_pda;
87
use crate::common::pda::get_launch_signer_pda;
8+
use crate::common::pda::get_token_metadata_pda;
99
use crate::common::token::initialize_associated_token_account;
1010

1111
pub 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(),

0 commit comments

Comments
 (0)