diff --git a/crates/chisel/src/session_source.rs b/crates/chisel/src/session_source.rs index c13f66c026a7..322598e36940 100644 --- a/crates/chisel/src/session_source.rs +++ b/crates/chisel/src/session_source.rs @@ -191,11 +191,9 @@ impl SessionSource { #[track_caller] pub fn new(solc: Solc, mut config: SessionSourceConfig) -> Self { if let Ok(v) = solc.version_short() { - if v < MIN_VM_VERSION { - if !config.no_vm { - tracing::info!(version=%v, minimum=%MIN_VM_VERSION, "Disabling VM injection"); - config.no_vm = true; - } + if v < MIN_VM_VERSION && !config.no_vm { + tracing::info!(version=%v, minimum=%MIN_VM_VERSION, "Disabling VM injection"); + config.no_vm = true; } }