Skip to content

chore: support solidity 0.9.0-pre.1 - #952

Open
Amxx wants to merge 1 commit into
foundry-rs:masterfrom
Amxx:solc-0.9.0-pre.1
Open

Amxx wants to merge 1 commit into
foundry-rs:masterfrom
Amxx:solc-0.9.0-pre.1

Conversation

@Amxx

@Amxx Amxx commented Nov 26, 2026

Copy link
Copy Markdown

Summary

Allow forge-std to be compiled with solc 0.9.0-pre.1.

No source changes were required: the code compiles unchanged with 0.9.0-pre.1. The only blocker was the version range.

  • Widen the pragma of all src/ and test/ files to >=0.8.13 <0.10.0. 48 files used <0.9.0 and 5 used ^0.8.13 (Config, StdConfig, LibVariable and their tests).
  • Update the range emitted by scripts/vm.py so regenerating Vm.sol keeps the new range.
  • Set SOLC_PRERELEASE: "0.9.0-pre.1" in CI to enable the existing prerelease build jobs (nightly toolchain, with and without --via-ir).

Testing

Compiler Build forge test
0.9.0-pre.1 ✅ (only warning 3805, pre-release) ✅ 226/226
0.8.35 ✅ ✅ 226/226
0.8.13 ✅ —

The CI build command (forge build --skip test --deny warnings --ignored-error-codes 3805 --contracts 'test/compilation/*') also passes with 0.9.0-pre.1, with and without --via-ir. forge fmt --check is clean.

Widen pragmas from `<0.9.0` (and `^0.8.13`) to `>=0.8.13 <0.10.0`,
update the range emitted by scripts/vm.py, and enable the prerelease
CI jobs with solc 0.9.0-pre.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants