Skip to content

Commit 5314461

Browse files
feat: accept ETH_RPC_URL env as fork-url alias (#8972)
* (feat): accept ETH_RPC_URL env as fork-url alias * Fix tests * Fix formatting * Fix whitespaces * Fix tests * Fix tests * chore: fix ETH_RPC_URL in CI --------- Co-authored-by: DaniPopes <[email protected]>
1 parent 094a2c3 commit 5314461

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.github/workflows/nextest.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
fail-fast: false
4848
matrix: ${{ fromJson(needs.matrices.outputs.test-matrix) }}
4949
env:
50-
ETH_RPC_URL: https://reth-ethereum.ithaca.xyz/rpc
5150
CARGO_PROFILE_DEV_DEBUG: 0
5251
steps:
5352
- uses: actions/checkout@v5

crates/anvil/src/cmd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ pub struct AnvilEvmArgs {
408408
long,
409409
short,
410410
visible_alias = "rpc-url",
411+
env = "ETH_RPC_URL",
411412
value_name = "URL",
412413
help_heading = "Fork config"
413414
)]

crates/common/src/evm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub struct EvmArgs {
4646
/// Fetch state over a remote endpoint instead of starting from an empty state.
4747
///
4848
/// If you want to fetch state from a specific block number, see --fork-block-number.
49-
#[arg(long, short, visible_alias = "rpc-url", value_name = "URL")]
49+
#[arg(long, short, visible_alias = "rpc-url", env = "ETH_RPC_URL", value_name = "URL")]
5050
#[serde(rename = "eth_rpc_url", skip_serializing_if = "Option::is_none")]
5151
pub fork_url: Option<String>,
5252

0 commit comments

Comments
 (0)