Repository navigation
The default Solidity compatibility target is 0.8.39.
Compatibility
- Select Solidity
0.8.36through0.8.39with--solc-versionor the
solc_versionfield on Zig Standard JSON requests. The selected release
controls pragma checks, code generation, diagnostics, and metadata. - Support
block.slotnumand Yulslotnum()on Amsterdam from Solidity
0.8.37. Bytecode listings recognizeSLOTNUMfrom the same release. - From Solidity
0.8.37, accept in-range signed storage layout bases, reject
pragma experimental solidity, and warn about
pragma experimental ABIEncoderV2. - From Solidity
0.8.38, compare large pragma version components as unsigned,
require decimal Yul@use-srcindices, retireyulCFGJsonoutput selection,
and warn aboutswapn,dupn, andexchangeas Yul identifiers. - Use release-specific external dispatch, Yul parameter analysis, EVM
deprecation warnings, and code-size limits.
Security
- Reserve distinct spill slots across mutually recursive Yul calls
(SOL-2026-4). - Encode named custom-error arguments in declaration order in
require
(SOL-2026-6). - Invalidate Yul optimizer alias facts when a variable's value changes
(SOL-2026-7). - Snapshot overlapping sources during recursive storage copies (
SOL-2026-8).
Generate the overlap guard only when the destination type can contain the
source.
Changed
- Require Zig
0.17.1and update SQLite to3.54.1, yyjson to0.13.0,
and the optional browser's Bun requirement to1.4.5. Refresh the pinned
http.zig and zlinter revisions. - Compare bundled external benchmarks against solc
0.8.39by default.
Pass--solc-versionand a matching reference compiler to compare another
release.
Fixed
- Generate separate constant helpers for checked and unchecked arithmetic.
- Preserve bounds checks for Yul
returndatacopycalls that can revert. - Handle parenthesized custom errors passed to
requireand report diagnostics
for fixed-point references in inline assembly. - Clip diagnostic excerpts at UTF-8 boundaries and align highlights with the
displayed text. Elide malformed bytes while preserving the source frame and
caret. - Restore the standalone parser fuzz build.
- Match solc’s creation and deployed bytecode for overlapping recursive
storage copies with and without optimization.