The experimental
flag in CBOR metadata is not set when targeting experimental EVM versions
#15835
Labels
bug 🐛
low effort
There is not much implementation work to be done. The task is very easy or tiny.
low impact
Changes are not very noticeable or potential benefits are limited.
must have eventually
Something we consider essential but not enough to prevent us from releasing Solidity 1.0 without it.
Description
Our CBOR metadata includes an
experimental
flag. Currently we set it when compiling Generic Solidity code (pragma experimental solidity
) and when using the EOF backend:solidity/libsolidity/interface/CompilerStack.cpp
Lines 1932 to 1933 in 03ad799
However, those are not the only cases where the output of the compiler is experimental though. Most notably, compilation to yet unreleased EVM versions like Prague, Osaka or Amsterdam is always considered experimental. The flag should be set in such cases as well.
Note that just like for EOF, the functionality should be covered with a test (#15663).
Environment
Steps to Reproduce
Then inspect the CBOR data included at the end of the binary.
The text was updated successfully, but these errors were encountered: