Skip to content

Commit

Permalink
feat : refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdbytes committed Dec 12, 2024
1 parent a8c49e5 commit 5212c16
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ async fn setup_braavos<'a>(
}

pub async fn setup_l2(config_file: &mut ConfigFile, clients: &Clients) -> BootstrapperOutput {
let address = Address::from_str("0xe7f1725e7734ce288f8367e1bb143e90bb3f0512").unwrap();
println!(">>> address : {:?}", address.encode_hex());

// Had to create a temporary clone otherwise the `ConfigFile`
// will be dropped after passing into `get_account` function.
let config_file_clone = &config_file.clone();
Expand Down Expand Up @@ -469,11 +466,7 @@ pub async fn setup_l2(config_file: &mut ConfigFile, clients: &Clients) -> Bootst
// upgrading the eth bridge
config_file.l1_eth_bridge_address = Some(format!(
"0x{}",
eth_bridge_setup_outputs
.l1_bridge_address
.encode_hex()
.trim_start_matches("0x")
.trim_start_matches('0')
eth_bridge_setup_outputs.l1_bridge_address.encode_hex().trim_start_matches("0x").trim_start_matches('0')
));
config_file.l2_eth_token_proxy_address = Some(eth_bridge_setup_outputs.l2_eth_proxy_address.to_hex_string());
config_file.l2_eth_bridge_proxy_address =
Expand Down

0 comments on commit 5212c16

Please sign in to comment.