From 1ea1d98c613395b42aeccc28a022102526535972 Mon Sep 17 00:00:00 2001 From: Teng Zhang Date: Mon, 18 Nov 2024 15:47:51 -0800 Subject: [PATCH] fix e2e-move-tests --- aptos-move/e2e-move-tests/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aptos-move/e2e-move-tests/src/lib.rs b/aptos-move/e2e-move-tests/src/lib.rs index 1b2bc1bc6a5fe3..97b0e0b7c14330 100644 --- a/aptos-move/e2e-move-tests/src/lib.rs +++ b/aptos-move/e2e-move-tests/src/lib.rs @@ -60,5 +60,10 @@ pub(crate) fn build_package_with_compiler_version( ) -> anyhow::Result { 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) }