Skip to content

Commit e04c03d

Browse files
- use DEFAULT_ADDRESS_ZKP_BATCH_SIZE in (#1792)
`InitAddressTreeAccountsInstructionData::testnet_default` - fix typo in forester test config method name
1 parent c633acd commit e04c03d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

program-libs/batched-merkle-tree/src/initialize_address_tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub fn get_address_merkle_tree_account_size_from_params(
176176
pub mod test_utils {
177177
pub use super::InitAddressTreeAccountsInstructionData;
178178
use crate::constants::{
179-
DEFAULT_ZKP_BATCH_SIZE, TEST_DEFAULT_BATCH_SIZE, TEST_DEFAULT_ZKP_BATCH_SIZE,
179+
DEFAULT_ADDRESS_ZKP_BATCH_SIZE, TEST_DEFAULT_BATCH_SIZE, TEST_DEFAULT_ZKP_BATCH_SIZE,
180180
};
181181

182182
impl InitAddressTreeAccountsInstructionData {
@@ -220,7 +220,7 @@ pub mod test_utils {
220220
forester: None,
221221
bloom_filter_num_iters: 3,
222222
input_queue_batch_size: 2000,
223-
input_queue_zkp_batch_size: DEFAULT_ZKP_BATCH_SIZE,
223+
input_queue_zkp_batch_size: DEFAULT_ADDRESS_ZKP_BATCH_SIZE,
224224
height: 40,
225225
root_history_capacity: 20,
226226
bloom_filter_capacity: 20_000 * 8,

program-tests/registry-test/tests/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ async fn test_custom_forester() {
626626
#[serial]
627627
#[tokio::test]
628628
async fn test_custom_forester_batched() {
629-
let mut rpc = LightProgramTest::new(ProgramTestConfig::default_test_forster(true))
629+
let mut rpc = LightProgramTest::new(ProgramTestConfig::default_test_forester(true))
630630
.await
631631
.unwrap();
632632
rpc.indexer = None;
@@ -1849,7 +1849,7 @@ async fn test_rollover_batch_state_tree() {
18491849
#[serial]
18501850
#[tokio::test]
18511851
async fn test_batch_address_tree() {
1852-
let mut config = ProgramTestConfig::default_test_forster(true);
1852+
let mut config = ProgramTestConfig::default_test_forester(true);
18531853
let tree_params = config.v2_address_tree_config.unwrap();
18541854
config.v2_state_tree_config = Some(InitStateTreeAccountsInstructionData::default());
18551855
config.additional_programs = Some(vec![(

program-tests/system-test/tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ pub fn rustfmt(code: String) -> Result<Vec<u8>, io::Error> {
18361836
#[serial]
18371837
#[tokio::test]
18381838
async fn batch_invoke_test() {
1839-
let config = ProgramTestConfig::default_test_forster(false);
1839+
let config = ProgramTestConfig::default_test_forester(false);
18401840

18411841
let mut rpc = LightProgramTest::new(config).await.unwrap();
18421842

sdk-libs/program-test/src/program_test/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl ProgramTestConfig {
6565
}
6666

6767
#[cfg(feature = "devenv")]
68-
pub fn default_test_forster(with_prover: bool) -> Self {
68+
pub fn default_test_forester(with_prover: bool) -> Self {
6969
Self {
7070
additional_programs: None,
7171
with_prover,

0 commit comments

Comments
 (0)