Skip to content

Commit 4d1df57

Browse files
zeevick10grandizzy
andauthored
refactor(config): remove etherscan_api_key fallback from get_rpc_url (#12179)
Update lib.rs Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
1 parent 6d7b37b commit 4d1df57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/config/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ impl Config {
14001400
/// # }
14011401
/// ```
14021402
pub fn get_rpc_url(&self) -> Option<Result<Cow<'_, str>, UnresolvedEnvVarError>> {
1403-
let maybe_alias = self.eth_rpc_url.as_ref().or(self.etherscan_api_key.as_ref())?;
1403+
let maybe_alias = self.eth_rpc_url.as_deref()?;
14041404
if let Some(alias) = self.get_rpc_url_with_alias(maybe_alias) {
14051405
Some(alias)
14061406
} else {

0 commit comments

Comments
 (0)