Skip to content

chore: bump vyper to 0.4.3 which adds support for prague #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/artifacts/vyper/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/compilers/tests/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub static VYPER: LazyLock<Vyper> = 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() {
Expand Down
Loading