Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypony220 committed Aug 5, 2023
1 parent 0972e17 commit 0b449e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions crates/beerus-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use beerus_core::{
config::Config,
lightclient::{
beerus::BeerusLightClient, beerus::SyncStatus,
ethereum::helios_lightclient::HeliosLightClient, starknet::StarkNetLightClientImpl,
},
};

Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion crates/beerus-rpc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit 0b449e0

Please sign in to comment.