diff --git a/aptos-move/block-executor/src/executor.rs b/aptos-move/block-executor/src/executor.rs index 6e2efc038a2fa6..f3f4ed3bb6bd48 100644 --- a/aptos-move/block-executor/src/executor.rs +++ b/aptos-move/block-executor/src/executor.rs @@ -618,9 +618,9 @@ where // Publish modules before we decrease validation index so that validations observe // the new module writes as well. if runtime_environment.vm_config().use_loader_v2 { + executed_at_commit = true; let module_write_set = last_input_output.module_write_set(txn_idx); if !module_write_set.is_empty() { - executed_at_commit = true; Self::publish_module_writes( txn_idx, module_write_set,