Standard JSON fails on `amsterdam` with `settings.experimental: true`

オープン
#712 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@xermicus がすでに取り組んでいます。

2026年10月23日 から。

評価

この issue はまだ評価されていません。

説明

bug

The standard JSON settings evmVersion: "amsterdam" and experimental: true fail with EVM version 'amsterdam' is experimental and can only be used with the 'settings.experimental' option enabled. and no output. solc 0.8.37 compiles the same input, with viaIR: true.

MRE (EV.sol):

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract E { function f() external pure returns (uint256) { return 7; } }

Reproduce (run compiles EV.sol through standard JSON with the given compiler and the given extra settings, and prints the first error or ok):

run() {
  printf '{"language":"Solidity","sources":{"EV.sol":{"urls":["EV.sol"]}},"settings":{"viaIR":true,"optimizer":{"enabled":true},"outputSelection":{"*":{"*":["abi"]}},%s}}' "$2" > in.json
  $1 --standard-json --allow-paths . < in.json | jq -r '[.errors[]? | select(.severity == "error") | .message][0] // "ok"'
}

run resolc '"evmVersion":"amsterdam","experimental":true'
# EVM version 'amsterdam' is experimental and can only be used with the 'settings.experimental' option enabled.

run solc '"evmVersion":"amsterdam","experimental":true'
# ok

Expected behavior: amsterdam with experimental: true compiles, as in solc.

Git commit: a225688

主要言語
Rust
スター
104
フォーク
28
平均マージ
5日 14時間
マージ済み PR(30日)
24

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

paritytech/revive のほかの issue

paritytech/revive の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。