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 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() {