Skip to content

Commit 7444f06

Browse files
committed
fix: missing check for normalization
1 parent 98eef39 commit 7444f06

File tree

1 file changed

+1
-1
lines changed
  • crates/artifacts/solc/src

1 file changed

+1
-1
lines changed

Diff for: crates/artifacts/solc/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ impl EvmVersion {
859859
// For all other cases, cap at the at-the-time highest possible fork.
860860
let normalized = if *version >= OSAKA_SOLC {
861861
self
862-
} else if *version >= PRAGUE_SOLC {
862+
} else if self >= Self::Prague && *version >= PRAGUE_SOLC {
863863
Self::Prague
864864
} else if self >= Self::Cancun && *version >= CANCUN_SOLC {
865865
Self::Cancun

0 commit comments

Comments
 (0)