The development team behind Solidity has officially announced the release of Solidity Compiler version 0.8.31, marking a significant milestone for smart contract developers across the Ethereum ecosystem. This latest update brings crucial alignment with upcoming network upgrades, extends core language capabilities, and introduces the first wave of feature deprecations leading up to the major 0.9.0 breaking release. Additionally, the release expands platform availability by introducing official ARM Linux builds, streamlining infrastructure support for modern developer environments.
Notable Features and Changes
Fusaka Support
With the Fusaka network upgrade scheduled for mainnet deployment, version 0.8.31 establishes "osaka" as the default EVM target for the compiler. Developers maintaining applications on older networks retain the flexibility to target previous EVM versions by utilizing the standard --evm-version flag or configuring settings.evmVersion within their deployment pipelines.
CLZ Opcode Integration
A primary addition in this compiler version is native support for the CLZ opcode, implemented in accordance with EIP-7939. This opcode efficiently counts the number of leading zero bits in a 256-bit word. While low-level compiler optimizations utilizing this instruction are currently limited, the opcode serves as a foundational building block for advanced bit manipulation, compression algorithms, and specialized data structures at the application layer. Prominent smart contract libraries, such as Solady, have already identified numerous use cases for the instruction, which will eventually replace existing software utilities like OpenZeppelin’s Math.clz() function.
Changes to the Release Process
Linux ARM Releases
Solidity 0.8.31 introduces official Linux binaries tailored for the ARM architecture. While ARM-based Apple silicon has enjoyed official binary support for some time, and developers could previously compile Solidity from source on Linux ARM systems, this release integrates ARM Linux binaries directly into the project’s continuous integration and release infrastructure. Developers utilizing Linux on ARM hardware, or running compiler binaries inside containerized environments such as Docker on ARM systems, can now source official builds directly from the primary repository. These binaries undergo rigorous testing, ensuring that generated bytecode and metadata remain identical across all supported platforms.
Introducing Pre-releases
Historically, the Solidity release cycle alternated strictly between stable full releases and nightly builds. To bridge the gap and provide early access to experimental features, the team formalized a lightweight pre-release process with version v0.8.31-pre.1 back in October. This iterative approach allows developers to test forward-looking capabilities—such as CLZ opcode support—earlier in the development lifecycle before they land in stable mainnet-ready releases.
Discontinuation of PPA Releases
In an ongoing effort to reduce maintenance overhead associated with niche distribution channels, the Solidity team is officially discontinuing the Ubuntu PPA as a binary distribution mechanism starting with this release. While Docker-based releases will remain available for at least one more cycle, their future depends on sustained usage metrics. Developers should note that container images have already migrated from DockerHub to GitHub’s container registry, where all future containerized binaries will be hosted.
Constants in Storage Layout Specifiers
Version 0.8.31 extends the functionality of custom storage layout specifiers by allowing constant variables to be utilized within base slot expressions. For instance, developers can now define an offset constant and apply it directly within a contract’s storage layout declaration, such as contract C layout at 0xAAAA + OFFSET.
Compile-time evaluation within Solidity remains deliberately constrained, supporting arithmetic expressions exclusively over rational number literals evaluated under unlimited precision. Consequently, introducing finite-precision integer types into these expressions via explicit type conversions, built-in functions, or ternary operators will trigger a compilation error. The core team plans to introduce specialized built-in features in upcoming releases to simplify common expressions while avoiding these precision limitations, prior to developing a more comprehensive compile-time evaluation architecture for the language.
Feature Deprecations
As the ecosystem looks ahead to the 0.9.0 breaking release, the Solidity team is systematically removing legacy baggage to create a leaner, more robust compiler. Version 0.8.31 introduces the first set of formal deprecation warnings for features scheduled for elimination in the next major version.
Removal of <address>.send() and <address>.transfer()
The send() and transfer() functions were originally designed to facilitate Ether transfers while restricting the recipient contract from executing complex, potentially malicious logic. Because the EVM lacks a direct mechanism to transfer value without executing target code, these functions enforce a hardcoded stipend of 2,300 gas. While historically sufficient to read storage and emit events, shifts in opcode gas pricing over time rendered this gas limit fragile and unpredictable.
Consequently, these functions are now widely recognized as an anti-pattern. Developers are encouraged to transition to <address>.call() with an empty payload as the standard alternative. Because <address>.call() forwards unconstrained gas by default, developers relying on send() or transfer() for reentrancy safety must implement alternative safeguards, such as transient storage reentrancy guards or strict adherence to the checks-effects-interactions pattern. Long-term solutions for simple value transfers will ultimately require EVM-level enhancements, such as EIP-5920 and the proposed PAY opcode.
Removal of ABI Coder V1
ABI coder v2, initially introduced as an experimental feature in version 0.4.19, became stable in the 0.7 release cycle and established itself as the default encoder in version 0.8.0. Providing full feature parity with v1 alongside struct support, nested array handling, and rigorous input validation, v2 is a complete drop-in replacement. Because v2 was built natively into Yul from its inception, it is compatible with both legacy and IR-based compilation pipelines. With v1 entirely obsolete, it is now formally deprecated and targeted for removal.
Removal of Virtual Modifiers
Modifiers in Solidity could previously be declared virtual and overridden in derived contracts. In practice, this feature frequently introduced confusing edge cases and complicated the compiler’s inheritance architecture without providing essential architectural benefits. While virtual functions invoked from within modifiers remain fully supported, virtual modifiers themselves are being removed to reduce language complexity.
Removal of Contract Comparison Operators
Historically, contract types inherited behavior closely tied to underlying address primitives, permitting direct comparison operators such as inequalities (c < d) between contract instances. Because contracts share superficial syntactic similarities with structs, these comparisons often led to user confusion regarding whether internal state or member values were being evaluated. Starting with version 0.9.0, such operations will require explicit conversion to address to ensure absolute semantic clarity.
Additionally, the alternative Natspec comment mechanism for annotating memory-safe assembly blocks (/// @solidity memory-safe-assembly) is deprecated in favor of the native syntax assembly ("memory-safe") ... , as the upcoming 0.9.0 release will drop backward compatibility for older syntax formats.
How to Install and Upgrade
Developers can upgrade to Solidity v0.8.31 by following the standard installation guidelines provided in the official documentation. Pre-compiled binaries and source archives are available directly through the official repository release page. Developers building from source are advised to use the dedicated solidity_0.8.31.tar.gz source tarball rather than auto-generated GitHub source archives to ensure build integrity.






