This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Commit e6bd098
authored
fix: normalize Vyper EVM version during input creation (#345)
## 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).1 parent d86103b commit e6bd098
1 file changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments