-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
support --profile cli argument #7859
Comments
investigating and scoping this currently, but yes this is a bit more complex cc @klkvr |
Per chain compiler config related to #7720. It proposes a UX for different profiles per contract, probably would need to be tweaked for this purpose |
@mds1 yah seems related but quite different as the suggestion it's factually a bit of the opposite. In practice I want to run the same contract on 12 chains, but on one a few i need In my naive view a "per network" config would be the perfect solution, but honestly idk if it's even possible to do. Probably for now, having |
Actually one related issue here is caching: |
Marking as duplicate of #5479 |
Component
Forge
Describe the feature you would like
It would be good if --profile could be specified as cli argument for
forge test
andforge script
The original issue I tried to solve is the following:
As i think there currently is no way to do this, my idea was to "work around" the problem by introducing "per chain" profiles(e.g.
profile.polygon
) and using the correct one based on the chain alias. Setting the profile viaFOUNDY_PROFILE
env is cumbersome though. It would be nice if it could be just part of the script/test command.Additional context
I think per chain compiler config would be a quite good(but ofc more complex) feature especially when shipping with reasonable defaults. Currently the evm landscape is quite hard to maneuver due to subtile changes. Having e.g. metis "default" to pre istanbul could make a lot of sense.
The text was updated successfully, but these errors were encountered: