-
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
feat(forge): add fork_url
as an alias for eth_rpc_url
in foundry.toml
#1414
Comments
Yes, and yes.
I think it's easier to alias |
how would I approach this if i wanted to work on this issue |
Actually, I think we might not want to create this alias since that would also run all tests in fork mode if |
I'm not sure I totally follow the suggesting aliasing and how it would affect config options/defaults, but:
Now that cast supports config files though, I wonder if this alias puts us in a weird spot: I might want tests to not fork, but cast to use e.g. Optimism by specifying an Optimism RPC in the config file's So perhaps we want to decouple the two and have something like this?
|
To second @mds1's comments, the following scenario is currently not supported:
|
Will close this as this is sort of supported now - you can add RPC URLs in the [rpc_endpoints]
mainnet = "${ETH_RPC_URL}" I think that should cover this functionality, but please let me know if it didn't quite cover what you were asking for 🙂 |
Component
Forge
Describe the feature you would like
Brief
A user is able to setup fork scenarios using the following declaration:
If we want to continue the convention of letting config set CLI options, then it would make sense to alias
fork_url
toeth_rpc_url
, as shown:This was prompted after testing the changes in: #1378
Scope
eth_rpc_url
infoundry.toml
andforge test --fork-url
already equivalent? Is priority given to the command line flag?fork_url
as an alias foreth_rpc_url
, do we want to reverse the relationship and makeeth_rpc_url
an alias forfork_url
?Additional context
No response
The text was updated successfully, but these errors were encountered: