Skip to content

Commit

Permalink
update env var rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
halo3mic committed May 2, 2024
1 parent 0ea71f5 commit fde30aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/eth_token_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/slot_finder/slot_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod tests {
}

fn rpc_endpoint() -> Result<String> {
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]
Expand Down

0 comments on commit fde30aa

Please sign in to comment.