Skip to content

feat: cast storage --solc-version CLI argument #11321

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zugdev
Copy link

@zugdev zugdev commented Aug 17, 2025

Motivation

#9939 is a feature request for --solc-version as a CLI argument for cast storage. This is my first PR, please be as strict as possible so I can learn.

Solution

User can override the detected version by passing cast storage --solc-version <version>, I've added a conditional in case the argument is passed.

I have a few observations:

  1. It's not clear by spec, whether it should be a global cast argument
  2. Should I forbid the user from passing a version older than MIN_SOLC or an invalid compiler version for that artifact? The warning and error message are already displayed in each case.
  3. Should I add a test set?

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant