Skip to content

Commit 564a996

Browse files
authored
feat: add osaka evm version (#254)
ref https://soliditylang.org/blog/2025/03/12/solidity-0.8.29-release-announcement if configured opts into experimental EOF support ref foundry-rs/foundry#10064
1 parent c24edd6 commit 564a996

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

crates/artifacts/solc/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,7 @@ pub enum EvmVersion {
818818
#[default]
819819
Cancun,
820820
Prague,
821+
Osaka,
821822
}
822823

823824
impl EvmVersion {
@@ -900,6 +901,7 @@ impl EvmVersion {
900901
Self::Shanghai => "shanghai",
901902
Self::Cancun => "cancun",
902903
Self::Prague => "prague",
904+
Self::Osaka => "osaka",
903905
}
904906
}
905907

@@ -969,6 +971,7 @@ impl FromStr for EvmVersion {
969971
"shanghai" => Ok(Self::Shanghai),
970972
"cancun" => Ok(Self::Cancun),
971973
"prague" => Ok(Self::Prague),
974+
"osaka" => Ok(Self::Osaka),
972975
s => Err(format!("Unknown evm version: {s}")),
973976
}
974977
}

crates/core/src/utils/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ pub const CANCUN_SOLC: Version = Version::new(0, 8, 24);
6666
/// <https://soliditylang.org/blog/2024/09/04/solidity-0.8.27-release-announcement>
6767
pub const PRAGUE_SOLC: Version = Version::new(0, 8, 27);
6868

69+
/// Osaka support
70+
/// <https://soliditylang.org/blog/2025/03/12/solidity-0.8.29-release-announcement>
71+
pub const OSAKA_SOLC: Version = Version::new(0, 8, 29);
72+
6973
// `--base-path` was introduced in 0.6.9 <https://github.com/ethereum/solidity/releases/tag/v0.6.9>
7074
pub static SUPPORTS_BASE_PATH: Lazy<VersionReq> =
7175
Lazy::new(|| VersionReq::parse(">=0.6.9").unwrap());

0 commit comments

Comments
 (0)