From 0b449e0b7a48669780b428c1eb44e41f2e0949b8 Mon Sep 17 00:00:00 2001 From: tonypony220 <61715244+tonypony220@users.noreply.github.com> Date: Sat, 5 Aug 2023 20:01:40 +0200 Subject: [PATCH] clean up --- crates/beerus-js/src/lib.rs | 7 +------ crates/beerus-rpc/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/crates/beerus-js/src/lib.rs b/crates/beerus-js/src/lib.rs index d467d7e36..ba6af713b 100644 --- a/crates/beerus-js/src/lib.rs +++ b/crates/beerus-js/src/lib.rs @@ -7,7 +7,6 @@ use beerus_core::{ config::Config, lightclient::{ beerus::BeerusLightClient, beerus::SyncStatus, - ethereum::helios_lightclient::HeliosLightClient, starknet::StarkNetLightClientImpl, }, }; @@ -36,11 +35,7 @@ impl BeerusClient { let cfg = Config::from_args(network, consensus_rpc, execution_rpc, starknet_rpc); - let eth_lc = HeliosLightClient::new(cfg.clone()).await.unwrap(); - - let starknet_lc = StarkNetLightClientImpl::new(&cfg).unwrap(); - - let mut beerus = BeerusLightClient::new(cfg, Box::new(eth_lc), Box::new(starknet_lc)); + let mut beerus = BeerusLightClient::new(cfg); beerus.start().await.unwrap(); diff --git a/crates/beerus-rpc/src/main.rs b/crates/beerus-rpc/src/main.rs index d06ef8a0c..c25322641 100644 --- a/crates/beerus-rpc/src/main.rs +++ b/crates/beerus-rpc/src/main.rs @@ -14,7 +14,7 @@ async fn main() { let mut beerus = match BeerusLightClient::new(config.clone()).await { Ok(beerus) => beerus, Err(err) => { - error!("{}", err); + error!{"{}", err}; exit(1); } };