diff --git a/core/bin/zksync_server/src/node_builder.rs b/core/bin/zksync_server/src/node_builder.rs index 176d38c8b603..547b18460390 100644 --- a/core/bin/zksync_server/src/node_builder.rs +++ b/core/bin/zksync_server/src/node_builder.rs @@ -525,7 +525,7 @@ impl MainNodeBuilder { }; let secrets = try_load_config!(self.secrets.data_availability); - let l1 = try_load_config!(self.secrets.l1); + let l1_secrets = try_load_config!(self.secrets.l1); match (da_client_config, secrets) { (DAClientConfig::Avail(config), DataAvailabilitySecrets::Avail(secret)) => { self.node.add_layer(AvailWiringLayer::new(config, secret)); @@ -538,7 +538,7 @@ impl MainNodeBuilder { (DAClientConfig::Eigen(mut config), DataAvailabilitySecrets::Eigen(secret)) => { if config.eigenda_eth_rpc.is_none() { - config.eigenda_eth_rpc = Some(l1.l1_rpc_url.expose_str().to_string()); + config.eigenda_eth_rpc = Some(l1_secrets.l1_rpc_url.expose_str().to_string()); } self.node.add_layer(EigenWiringLayer::new(config, secret)); }