diff --git a/examples/eth_token_support.rs b/examples/eth_token_support.rs index c5651be..1441b75 100644 --- a/examples/eth_token_support.rs +++ b/examples/eth_token_support.rs @@ -18,7 +18,7 @@ struct TokenInfo { #[tokio::main] async fn main() -> Result<()> { let ethereum_tokens = coingecko_all_tokens("ethereum".to_string()).await?; - let rpc_endpoint = env_var("RPC_URL")?; + let rpc_endpoint = env_var("ETH_RPC_URL")?; let anvil = spawn_anvil(Some(&rpc_endpoint)); for (symbol, token) in ethereum_tokens { diff --git a/src/slot_finder/slot_finder.rs b/src/slot_finder/slot_finder.rs index 3ed8e2d..5f437e2 100644 --- a/src/slot_finder/slot_finder.rs +++ b/src/slot_finder/slot_finder.rs @@ -111,7 +111,7 @@ mod tests { } fn rpc_endpoint() -> Result { - env_var("RPC_URL") // todo: rename this to test-rpc or emphasize that it must be eth based + env_var("ETH_RPC_URL") } #[tokio::test]