From 027241f28a173184dc8f6a4e413720e14e94cb06 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 12 Mar 2025 19:11:42 +0100 Subject: [PATCH] feat: add osaka evm version --- crates/artifacts/solc/src/lib.rs | 3 +++ crates/core/src/utils/mod.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/crates/artifacts/solc/src/lib.rs b/crates/artifacts/solc/src/lib.rs index c74cac4d6..e643f91f2 100644 --- a/crates/artifacts/solc/src/lib.rs +++ b/crates/artifacts/solc/src/lib.rs @@ -818,6 +818,7 @@ pub enum EvmVersion { #[default] Cancun, Prague, + Osaka, } impl EvmVersion { @@ -900,6 +901,7 @@ impl EvmVersion { Self::Shanghai => "shanghai", Self::Cancun => "cancun", Self::Prague => "prague", + Self::Osaka => "osaka", } } @@ -969,6 +971,7 @@ impl FromStr for EvmVersion { "shanghai" => Ok(Self::Shanghai), "cancun" => Ok(Self::Cancun), "prague" => Ok(Self::Prague), + "osaka" => Ok(Self::Osaka), s => Err(format!("Unknown evm version: {s}")), } } diff --git a/crates/core/src/utils/mod.rs b/crates/core/src/utils/mod.rs index a49afec16..2c6cc22b9 100644 --- a/crates/core/src/utils/mod.rs +++ b/crates/core/src/utils/mod.rs @@ -66,6 +66,10 @@ pub const CANCUN_SOLC: Version = Version::new(0, 8, 24); /// pub const PRAGUE_SOLC: Version = Version::new(0, 8, 27); +/// Osaka support +/// +pub const OSAKA_SOLC: Version = Version::new(0, 8, 29); + // `--base-path` was introduced in 0.6.9 pub static SUPPORTS_BASE_PATH: Lazy = Lazy::new(|| VersionReq::parse(">=0.6.9").unwrap());