Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Dec 30, 2024
1 parent 0efee25 commit ec26f8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions zkstack_cli/crates/config/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ use xshell::Shell;
use zksync_basic_types::L2ChainId;
use zksync_config::{
configs::{gateway::GatewayChainConfig, GatewayConfig},
DAClientConfig::Avail,
DAClientConfig::Eigen,
DAClientConfig::{Avail, Eigen},
};

use crate::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct ValidiumTypeArgs {
pub enum ValidiumTypeInternal {
NoDA,
Avail,
EigenDA
EigenDA,
}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, EnumIter, Display, ValueEnum)]
Expand All @@ -44,7 +44,7 @@ pub enum AvailClientTypeInternal {
pub enum ValidiumType {
NoDA,
Avail((AvailConfig, AvailSecrets)),
EigenDA
EigenDA,
}

impl ValidiumType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ pub async fn init_configs(
general_config.da_client_config = Some(avail_config.into());
secrets.data_availability = Some(DataAvailabilitySecrets::Avail(avail_secrets));
}
ValidiumType::EigenDA => {
}
ValidiumType::EigenDA => {}
}
}

Expand Down
4 changes: 3 additions & 1 deletion zkstack_cli/crates/zkstack/src/commands/chain/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ pub(crate) fn get_l1_da_validator(chain_config: &ChainConfig) -> anyhow::Result<
if let Some(da_client_config) = general_config.da_client_config {
match da_client_config {
DAClientConfig::Avail(_) => contracts_config.l1.avail_l1_da_validator_addr,
DAClientConfig::Eigen(_) => contracts_config.l1.no_da_validium_l1_validator_addr, // TODO: change to EigenDA
DAClientConfig::Eigen(_) => {
contracts_config.l1.no_da_validium_l1_validator_addr
} // TODO: change to EigenDA
_ => anyhow::bail!("DA client config is not supported"),
}
} else {
Expand Down

0 comments on commit ec26f8d

Please sign in to comment.