diff --git a/.env.test b/.env.test index 8c4a2678..b7b73e2c 100644 --- a/.env.test +++ b/.env.test @@ -25,7 +25,7 @@ PROVER_SERVICE="sharp" SETTLEMENT_LAYER="ethereum" DATA_STORAGE="s3" MONGODB_CONNECTION_STRING="mongodb://localhost:27017" - +DEFAULT_SETTLEMENT_CLIENT_RPC="http://localhost:3000" # Ethereum Settlement DEFAULT_L1_CORE_CONTRACT_ADDRESS="0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4" diff --git a/crates/settlement-clients/ethereum/src/lib.rs b/crates/settlement-clients/ethereum/src/lib.rs index cd05fc6f..9726eed9 100644 --- a/crates/settlement-clients/ethereum/src/lib.rs +++ b/crates/settlement-clients/ethereum/src/lib.rs @@ -87,7 +87,6 @@ impl EthereumSettlementClient { .0 .into(), filler_provider, - ); EthereumSettlementClient { @@ -116,7 +115,7 @@ impl EthereumSettlementClient { Arc::new(ProviderBuilder::new().with_recommended_fillers().wallet(wallet.clone()).on_http(rpc_url)); let core_contract_address = if let Some(core_contract_address) = core_contract_address { - core_contract_address.clone() + core_contract_address } else { // dummy address Address::from_str("0x0").unwrap() diff --git a/crates/settlement-clients/ethereum/src/tests/mod.rs b/crates/settlement-clients/ethereum/src/tests/mod.rs index 1eab1717..8a8165ee 100644 --- a/crates/settlement-clients/ethereum/src/tests/mod.rs +++ b/crates/settlement-clients/ethereum/src/tests/mod.rs @@ -114,7 +114,7 @@ impl EthereumTestBuilder { // Setup Provider let provider = ProviderBuilder::new().on_http(anvil.endpoint_url()); - if let Some(impersonator) = self.impersonator.clone() { + if let Some(impersonator) = self.impersonator { provider.anvil_impersonate_account(impersonator).await.expect("Unable to impersonate account."); }