Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Jan 16, 2025
1 parent 77ce557 commit 4371e70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aptos-move/aptos-e2e-comparison-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub use data_collection::*;
pub use execution::*;
use move_compiler::compiled_unit::CompiledUnitEnum;
use move_core_types::language_storage::ModuleId;
use move_model::metadata::CompilerVersion;
use move_model::metadata::{CompilerVersion, LanguageVersion};
use move_package::{
compilation::compiled_package::CompiledPackage,
source_package::{
Expand Down Expand Up @@ -449,6 +449,7 @@ fn compile_package(
let mut build_options = aptos_framework::BuildOptions {
compiler_version,
bytecode_version: Some(7),
language_version: Some(CompilerVersion::infer_stable_language_version(&compiler_version.unwrap_or_default())),
..Default::default()
};
build_options
Expand Down
8 changes: 6 additions & 2 deletions aptos-move/aptos-e2e-comparison-testing/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ pub enum Cmd {
/// Sampling rate (1-10)
#[clap(long, default_value_t = SAMPLING_RATE)]
rate: u32,
/// Branch of framework
#[clap(long)]
branch: Option<String>,
},
/// Collect and execute txns without dumping the state data
Online {
Expand Down Expand Up @@ -124,7 +127,8 @@ async fn main() -> Result<()> {
skip_source_code_check: skip_source_code,
dump_write_set,
target_account,
rate
rate,
branch
} => {
let batch_size = BATCH_SIZE;
let output = if let Some(path) = output_path {
Expand All @@ -136,7 +140,7 @@ async fn main() -> Result<()> {
std::fs::create_dir_all(output.as_path()).unwrap();
}
if !skip_source_code {
prepare_aptos_packages(output.join(APTOS_COMMONS), None).await;
prepare_aptos_packages(output.join(APTOS_COMMONS), branch).await;
}
let data_collector = DataCollection::new_with_rest_client(
Client::new(Url::parse(&endpoint)?),
Expand Down

0 comments on commit 4371e70

Please sign in to comment.