Skip to content

Add Yul EVM version "current" #15639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Add Yul EVM version "current" #15639

merged 2 commits into from
Dec 16, 2024

Conversation

clonker
Copy link
Member

@clonker clonker commented Dec 12, 2024

see this discussion: #15631 (comment)

@@ -85,6 +87,8 @@ class EVMVersion:

static std::optional<EVMVersion> fromString(std::string const& _version)
{
if (_version == "current")
return current();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this exposes the new alias everywhere, including the --evm-version option on the CLI. That wasn't really my intention here. I was thinking about just making it available in the EVMVersion setting in tests as a special value.

I would not be against having such an alias. Even internally the fact that EVMVersion{} means automatically the latest version may not be obvious (it wasn't to me at first), even if it's convenient. But it's a bigger change we should discuss more broadly first. It would also need a changelog entry and should be documented.

Copy link
Member Author

@clonker clonker Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That default ctor means current version was also anything but obvious to me before looking at the code. But you are right of course, this is a change that is outside-facing. Let's discuss it next week perhaps?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. In this PR I'd still limit it to tests though so that we can merge it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@clonker clonker force-pushed the yul_evm_current_version branch from 16843ff to d9e5338 Compare December 13, 2024 08:04
@clonker clonker force-pushed the yul_evm_current_version branch from d9e5338 to ee1aae5 Compare December 16, 2024 08:28
@clonker clonker force-pushed the yul_evm_current_version branch from 2552bea to 2064442 Compare December 16, 2024 08:30
@clonker clonker merged commit 10fbfca into develop Dec 16, 2024
73 checks passed
@clonker clonker deleted the yul_evm_current_version branch December 16, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants