Skip to content
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): accept ETH_RPC_URL env as fork-url alias #8972

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

CodeSandwich
Copy link
Contributor

Motivation

Currently commands like forge script don't read the ETH_RPC_URL env variable, you need to to forge script --rpc-url "$ETH_RPC_URL" (or --fork-url or -f, --rpc-url is just one of the aliases). This is unlike all other commands like forge create, which accept ETH_RPC_URL as the --rpc-url alternative.

Solution

Add support for ETH_RPC_URL wherever --fork-url is accepted.

@CodeSandwich
Copy link
Contributor Author

The integration tests are a rabbit hole to fix. This PR isn't as simple as I was expecting and currently I don't have time to fix everything, so I'll return to it in a few days.

@CodeSandwich CodeSandwich marked this pull request as draft September 27, 2024 11:57
@klkvr
Copy link
Member

klkvr commented Sep 27, 2024

related: #7755

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

Successfully merging this pull request may close these issues.

2 participants