Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/edr_rpc_eth/tests/integration/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ mod alchemy {
// TODO: consider asserting something about the logs bloom
}

// TODO https://github.com/NomicFoundation/edr/issues/1190
#[ignore]
#[tokio::test]
async fn get_logs_future_from_block() {
let alchemy_url = get_alchemy_url();
Expand Down Expand Up @@ -335,6 +337,8 @@ mod alchemy {
}
}

// TODO https://github.com/NomicFoundation/edr/issues/1190
#[ignore]
#[tokio::test]
async fn get_logs_future_to_block() {
let alchemy_url = get_alchemy_url();
Expand Down Expand Up @@ -454,6 +458,8 @@ mod alchemy {
assert_eq!(transaction_count, U256::from(1));
}

// TODO https://github.com/NomicFoundation/edr/issues/1190
#[ignore]
#[tokio::test]
async fn get_transaction_count_future_block() {
let alchemy_url = get_alchemy_url();
Expand Down Expand Up @@ -574,6 +580,8 @@ mod alchemy {
.expect("should have succeeded");
}

// TODO https://github.com/NomicFoundation/edr/issues/1190
#[ignore]
#[tokio::test]
async fn get_storage_at_future_block() {
let alchemy_url = get_alchemy_url();
Expand Down
6 changes: 3 additions & 3 deletions crates/edr_runtime/tests/integration/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use edr_provider::spec::ForkedBlockchainForChainSpec;
use edr_rpc_eth::client::EthRpcClientForChainSpec;
use edr_state_api::{irregular::IrregularState, AccountModifierFn, StateDebug};
use edr_state_fork::ForkedState;
use edr_test_utils::env::get_alchemy_url;
use edr_test_utils::env::{get_alchemy_url, get_alchemy_url_for_network, NetworkType};
use edr_utils::random::RandomHashGenerator;
use parking_lot::Mutex;
use tokio::runtime;
Expand Down Expand Up @@ -53,8 +53,8 @@ async fn issue_336_set_balance_after_forking() -> anyhow::Result<()> {
async fn issue_hh_4974_forking_avalanche_c_chain() -> anyhow::Result<()> {
const FORK_BLOCK_NUMBER: u64 = 12_508_443;

let url = "https://coston-api.flare.network/ext/bc/C/rpc";
let rpc_client = EthRpcClientForChainSpec::<L1ChainSpec>::new(url, CACHE_DIR.into(), None)?;
let url = get_alchemy_url_for_network(NetworkType::Avalanche);
let rpc_client = EthRpcClientForChainSpec::<L1ChainSpec>::new(&url, CACHE_DIR.into(), None)?;
let mut irregular_state = IrregularState::default();
let state_root_generator = Arc::new(Mutex::new(RandomHashGenerator::with_seed("test")));

Expand Down
2 changes: 2 additions & 0 deletions crates/edr_test_utils/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub enum NetworkType {
Optimism,
Arbitrum,
Polygon,
Avalanche,
}

/// Return the URL of a specific network Alchemy from environment variables.
Expand All @@ -56,5 +57,6 @@ pub fn get_alchemy_url_for_network(network_type: NetworkType) -> String {
NetworkType::Optimism => format!("https://opt-mainnet{url_without_network}"),
NetworkType::Arbitrum => format!("https://arb-mainnet{url_without_network}"),
NetworkType::Polygon => format!("https://polygon-mainnet{url_without_network}"),
NetworkType::Avalanche => format!("https://avax-mainnet{url_without_network}"),
}
}
Loading