Skip to content

Commit

Permalink
[move] Enable V2 loader
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemitenkov committed Nov 1, 2024
1 parent dd5371e commit 0c62e4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions aptos-move/e2e-move-tests/src/tests/code_publishing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,6 @@ fn test_module_publishing_does_not_fallback() {
executor.disable_block_executor_fallback();

let mut h = MoveHarness::new_with_executor(executor);
h.enable_features(vec![FeatureFlag::ENABLE_LOADER_V2], vec![]);
let addr = AccountAddress::from_hex_literal("0x123").unwrap();
let account = h.new_account_at(addr);

Expand Down Expand Up @@ -530,7 +529,6 @@ fn test_module_publishing_does_not_leak_speculative_information() {
executor.disable_block_executor_fallback();

let mut h = MoveHarness::new_with_executor(executor);
h.enable_features(vec![FeatureFlag::ENABLE_LOADER_V2], vec![]);
let addr = AccountAddress::random();
let account = h.new_account_at(addr);

Expand Down
2 changes: 1 addition & 1 deletion third_party/move/move-vm/runtime/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Default for VMConfig {
ty_builder: TypeBuilder::with_limits(128, 20),
disallow_dispatch_for_native: true,
use_compatibility_checker_v2: true,
use_loader_v2: false,
use_loader_v2: true,
}
}
}
3 changes: 1 addition & 2 deletions types/src/on_chain_config/aptos_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ impl FeatureFlag {
FeatureFlag::ENABLE_RESOURCE_ACCESS_CONTROL,
FeatureFlag::REJECT_UNSTABLE_BYTECODE_FOR_SCRIPT,
FeatureFlag::TRANSACTION_SIMULATION_ENHANCEMENT,
// TODO(loader_v2): Enable V2 loader.
// FeatureFlag::ENABLE_LOADER_V2,
FeatureFlag::ENABLE_LOADER_V2,
]
}
}
Expand Down

0 comments on commit 0c62e4c

Please sign in to comment.