Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

fix: normalize Vyper EVM version during input creation#345

Merged
zerosnacks merged 2 commits intomainfrom
fix-vyper-evm-version-normalization
Jan 19, 2026
Merged

fix: normalize Vyper EVM version during input creation#345
zerosnacks merged 2 commits intomainfrom
fix-vyper-evm-version-normalization

Conversation

@zerosnacks
Copy link
Copy Markdown
Member

Summary

VyperInput::new() was calling sanitize_output_selection() instead of sanitize(), which meant normalize_evm_version() was never invoked during input creation.

This caused compilation failures when using EVM versions not supported by the Vyper compiler version. For example, using osaka (the new default in Foundry) with Vyper 0.4.3 would fail with:

Error: Compiler run failed:
Location: <stdin>
Unknown EVM version - 'osaka'

Fix

Call sanitize() instead of sanitize_output_selection() in VyperInput::new(). The sanitize() method already calls both sanitize_output_selection() and normalize_evm_version(), so this ensures the EVM version is properly downgraded to the maximum supported by the Vyper version (e.g., prague for Vyper 0.4.3).

@zerosnacks zerosnacks force-pushed the fix-vyper-evm-version-normalization branch from ce08df7 to c7fe66c Compare January 19, 2026 13:44
@zerosnacks zerosnacks marked this pull request as ready for review January 19, 2026 13:45
VyperInput::new() was only calling sanitize_output_selection() instead
of sanitize(), which meant normalize_evm_version() was never invoked.

This caused compilation failures when using EVM versions not supported
by the Vyper version (e.g., osaka with Vyper 0.4.3 which only supports
up to prague).
@zerosnacks zerosnacks force-pushed the fix-vyper-evm-version-normalization branch from c7fe66c to df56e34 Compare January 19, 2026 13:47
@zerosnacks zerosnacks enabled auto-merge (squash) January 19, 2026 13:53
@zerosnacks zerosnacks merged commit e6bd098 into main Jan 19, 2026
18 checks passed
@zerosnacks zerosnacks deleted the fix-vyper-evm-version-normalization branch January 19, 2026 13:55
zerosnacks added a commit that referenced this pull request Jan 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants