From b1e7d57b0303bab1256b097e936ce529927c3e7e Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Thu, 19 Jun 2025 11:26:22 +0200 Subject: [PATCH 1/2] vyper 0.4.3 adds prague support --- crates/artifacts/vyper/src/settings.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/artifacts/vyper/src/settings.rs b/crates/artifacts/vyper/src/settings.rs index 3653b0a13..f162d2871 100644 --- a/crates/artifacts/vyper/src/settings.rs +++ b/crates/artifacts/vyper/src/settings.rs @@ -13,6 +13,7 @@ pub const VYPER_BERLIN: Version = Version::new(0, 3, 0); pub const VYPER_PARIS: Version = Version::new(0, 3, 7); pub const VYPER_SHANGHAI: Version = Version::new(0, 3, 8); pub const VYPER_CANCUN: Version = Version::new(0, 3, 8); +pub const VYPER_PRAGUE: Version = Version::new(0, 4, 3); const VYPER_0_4: Version = Version::new(0, 4, 0); @@ -126,7 +127,9 @@ impl VyperSettings { /// Adjusts the EVM version based on the compiler version. pub fn normalize_evm_version(&mut self, version: &Version) { if let Some(evm_version) = &mut self.evm_version { - *evm_version = if *evm_version >= EvmVersion::Cancun && *version >= VYPER_CANCUN { + *evm_version = if *evm_version >= EvmVersion::Prague && *version >= VYPER_PRAGUE { + EvmVersion::Prague + } else if *evm_version >= EvmVersion::Cancun && *version >= VYPER_CANCUN { EvmVersion::Cancun } else if *evm_version >= EvmVersion::Shanghai && *version >= VYPER_SHANGHAI { EvmVersion::Shanghai From ca6e48dc57bba8c8daab7d7ed16b6b35b5be7fc0 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Thu, 19 Jun 2025 11:29:24 +0200 Subject: [PATCH 2/2] bump vyper version --- crates/compilers/tests/project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compilers/tests/project.rs b/crates/compilers/tests/project.rs index 334d43834..fcae49532 100644 --- a/crates/compilers/tests/project.rs +++ b/crates/compilers/tests/project.rs @@ -60,7 +60,7 @@ pub static VYPER: LazyLock = LazyLock::new(|| { return Vyper::new(&path).unwrap(); } - let base = "https://github.com/vyperlang/vyper/releases/download/v0.4.0/vyper.0.4.0+commit.e9db8d9f"; + let base = "https://github.com/vyperlang/vyper/releases/download/v0.4.3/vyper.0.4.3+commit.bff19ea2"; let url = format!( "{base}.{}", match platform() {