From 7444f0665802b89c6c863cb75bb05550913ca24a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 14 Mar 2025 13:55:08 +0100 Subject: [PATCH] fix: missing check for normalization --- crates/artifacts/solc/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/artifacts/solc/src/lib.rs b/crates/artifacts/solc/src/lib.rs index f9d122b6f..65eba4f60 100644 --- a/crates/artifacts/solc/src/lib.rs +++ b/crates/artifacts/solc/src/lib.rs @@ -859,7 +859,7 @@ impl EvmVersion { // For all other cases, cap at the at-the-time highest possible fork. let normalized = if *version >= OSAKA_SOLC { self - } else if *version >= PRAGUE_SOLC { + } else if self >= Self::Prague && *version >= PRAGUE_SOLC { Self::Prague } else if self >= Self::Cancun && *version >= CANCUN_SOLC { Self::Cancun