Skip to content

Commit

Permalink
fix e2e-move-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Nov 19, 2024
1 parent f967f0e commit 1ea1d98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aptos-move/e2e-move-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,10 @@ pub(crate) fn build_package_with_compiler_version(
) -> anyhow::Result<BuiltPackage> {
let mut options = options;
options.compiler_version = Some(compiler_version);
if options.compiler_version.unwrap() != CompilerVersion::V1 {
options.language_version = Some(move_model::metadata::LanguageVersion::latest_stable());
} else {
options.language_version = Some(move_model::metadata::LanguageVersion::V1);
}
BuiltPackage::build(package_path.to_owned(), options)
}

0 comments on commit 1ea1d98

Please sign in to comment.