Repository navigation
feat(solidity): add a 0.9.0-pre.1 target and reject virtual modifiers - #53
panditdhamdhere wants to merge 2 commits into
Conversation
Select the pre-release without changing the 0.8.39 default, and match solc by rejecting virtual modifiers, override modifiers, and modifiers without a body.
|
Thanks for the PR! Can you please confirm and fix the following issue? [P2] Encode the prerelease compiler identity as CBOR textLocation: src/common/solc_version.zig:56–57 The new target returns Consequently, compilations using the new target with CBOR enabled produce different bytecode and lose the prerelease identity in the embedded metadata. This also happens with I reproduced this using the built PR CLI and the official compiler with: // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.36;
contract C {}With
Suggested fix: Make |
Match solc 0.9.0-pre.1 by writing the compiler version as text in bytecode metadata. Stable releases keep the 3-byte version.
|
Fixed in 124d492.
The version-isolation test compiles the same empty contract with
|
Summary
0.9.0-pre.1target. The default remains0.8.39.virtualandoverridemodifiers and modifiers without a body, matching solc0.9.0-pre.1.0.8.36through0.8.39still warn that virtual modifiers are scheduled for removal.Test plan
zig build test-standard-json -Doptimize=Debugzig test src/common/solc_version.zig