Skip to content

Commit 98ede42

Browse files
authored
chore: bump vyper to 0.4.3 which adds support for prague (#285)
Adds support for Vyper 0.4.3 which now defaults to `prague`
1 parent 6b44ff8 commit 98ede42

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/artifacts/vyper/src/settings.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub const VYPER_BERLIN: Version = Version::new(0, 3, 0);
1313
pub const VYPER_PARIS: Version = Version::new(0, 3, 7);
1414
pub const VYPER_SHANGHAI: Version = Version::new(0, 3, 8);
1515
pub const VYPER_CANCUN: Version = Version::new(0, 3, 8);
16+
pub const VYPER_PRAGUE: Version = Version::new(0, 4, 3);
1617

1718
const VYPER_0_4: Version = Version::new(0, 4, 0);
1819

@@ -126,7 +127,9 @@ impl VyperSettings {
126127
/// Adjusts the EVM version based on the compiler version.
127128
pub fn normalize_evm_version(&mut self, version: &Version) {
128129
if let Some(evm_version) = &mut self.evm_version {
129-
*evm_version = if *evm_version >= EvmVersion::Cancun && *version >= VYPER_CANCUN {
130+
*evm_version = if *evm_version >= EvmVersion::Prague && *version >= VYPER_PRAGUE {
131+
EvmVersion::Prague
132+
} else if *evm_version >= EvmVersion::Cancun && *version >= VYPER_CANCUN {
130133
EvmVersion::Cancun
131134
} else if *evm_version >= EvmVersion::Shanghai && *version >= VYPER_SHANGHAI {
132135
EvmVersion::Shanghai

crates/compilers/tests/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub static VYPER: LazyLock<Vyper> = LazyLock::new(|| {
6060
return Vyper::new(&path).unwrap();
6161
}
6262

63-
let base = "https://github.com/vyperlang/vyper/releases/download/v0.4.0/vyper.0.4.0+commit.e9db8d9f";
63+
let base = "https://github.com/vyperlang/vyper/releases/download/v0.4.3/vyper.0.4.3+commit.bff19ea2";
6464
let url = format!(
6565
"{base}.{}",
6666
match platform() {

0 commit comments

Comments
 (0)