Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
test: append block with large declared contract
Browse files Browse the repository at this point in the history
Signed-off-by: Dori Medini <dori@starkware.co>
  • Loading branch information
dorimedini-starkware committed Jul 8, 2024
1 parent c90f11b commit 1560bf8
Show file tree
Hide file tree
Showing 3 changed files with 78,915 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/native_blockifier/src/py_block_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,16 @@ impl PyBlockExecutor {
global_contract_cache: GlobalContractCache::new(GLOBAL_CONTRACT_CACHE_SIZE_FOR_TEST),
}
}

#[cfg(any(feature = "testing", test))]
pub(crate) fn native_create_for_testing(
concurrency_config: PyConcurrencyConfig,
general_config: PyGeneralConfig,
path: std::path::PathBuf,
max_state_diff_size: usize,
) -> Self {
Self::create_for_testing(concurrency_config, general_config, path, max_state_diff_size)
}
}

#[derive(Default, FromPyObject)]
Expand Down
Loading

0 comments on commit 1560bf8

Please sign in to comment.