Radar · Solidity · Archive · Week 13 · Mar 24 – 30, 2025
The Case for EOF
Worth knowingecosystem
- What changed
- The Solidity team announced full support for the EVM Object Format, describing it as a long awaited upgrade that modernizes the EVM and removes obstacles that have wide‑ranging effects on the entire language, tooling and application ecosystem on Ethereum.
- Production impact
- The source does not say.
- Try it
- Read the blog post to understand the benefits and potential migration considerations for future Solidity releases.
- Source
- soliditylang.org/blog/2025/03/27/the-case-for-eof
Understand it, then run it
Run it now
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.37;
// EOF is not yet supported in Solidity 0.8.37.
// This contract demonstrates the current state: a simple
// contract that can be deployed and interacted with.
contract Main {
uint256 public value;
constructor(uint256 _value) {
value = _value;
}
function increment() external {
value += 1;
}
}
Tests
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.37;
import "./main.sol";
contract MainTest {
Main main;
constructor() {
main = new Main(42);
}
function test_initialValue() external {
require(main.value() == 42, "initial value wrong");
}
function test_increment() external {
main.increment();
require(main.value() == 43, "increment failed");
}
}
The test report when we ran it on Solidity 0.8.37 (solc)
2 of 2 tests passed.
- test_increment32,165 gas
- test_initialValue28,469 gas
- MainTest: 1,007 bytes of bytecode, deployed for 306,760 gas
solc 0.8.37 · prague
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed