From 7e7ab9b73a7e0196791be632b6ea9777621347f5 Mon Sep 17 00:00:00 2001 From: Heemank Verma Date: Thu, 7 Nov 2024 09:12:49 +0530 Subject: [PATCH] lint fix --- crates/orchestrator/src/config.rs | 6 +----- crates/settlement-clients/ethereum/src/lib.rs | 2 -- crates/settlement-clients/ethereum/src/tests/mod.rs | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/orchestrator/src/config.rs b/crates/orchestrator/src/config.rs index 767fda7f..5e6105ec 100644 --- a/crates/orchestrator/src/config.rs +++ b/crates/orchestrator/src/config.rs @@ -1,9 +1,5 @@ use std::sync::Arc; -#[cfg(feature = "testing")] -use alloy::primitives::Address; -#[cfg(feature = "testing")] -use alloy::providers::RootProvider; use aws_config::meta::region::RegionProviderChain; use aws_config::{Region, SdkConfig}; use aws_credential_types::Credentials; @@ -296,7 +292,7 @@ pub async fn build_settlement_client( } #[cfg(feature = "testing")] { - Ok(Box::new(EthereumSettlementClient::with_test_settings(ðereum_settlement_params))) + Ok(Box::new(EthereumSettlementClient::with_test_settings(ethereum_settlement_params))) } } SettlementParams::Starknet(starknet_settlement_params) => { diff --git a/crates/settlement-clients/ethereum/src/lib.rs b/crates/settlement-clients/ethereum/src/lib.rs index 31fde978..9370da76 100644 --- a/crates/settlement-clients/ethereum/src/lib.rs +++ b/crates/settlement-clients/ethereum/src/lib.rs @@ -23,8 +23,6 @@ use color_eyre::eyre::{bail, eyre, Ok}; use color_eyre::Result; use conversion::{get_input_data_for_eip_4844, prepare_sidecar}; use settlement_client_interface::{SettlementClient, SettlementVerificationStatus}; -#[cfg(feature = "testing")] -use url::Url; use utils::cli::settlement::ethereum::EthereumSettlementParams; use crate::clients::interfaces::validity_interface::StarknetValidityContractTrait; diff --git a/crates/settlement-clients/ethereum/src/tests/mod.rs b/crates/settlement-clients/ethereum/src/tests/mod.rs index 338a3b30..f5af3564 100644 --- a/crates/settlement-clients/ethereum/src/tests/mod.rs +++ b/crates/settlement-clients/ethereum/src/tests/mod.rs @@ -294,7 +294,7 @@ mod settlement_client_tests { starknet_operator_address: get_env_var_or_panic("STARKNET_OPERATOR_ADDRESS"), }; - let setup = EthereumTestBuilder::new().with_fork_block(fork_block_no).build().await; + let _setup = EthereumTestBuilder::new().with_fork_block(fork_block_no).build().await; let ethereum_settlement_client = EthereumSettlementClient::with_test_settings(ðereum_settlement_params); assert_eq!(