Skip to content

Commit

Permalink
Don't mess up with contracts and clients
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Mar 5, 2025
1 parent 322346b commit 0ef2677
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/bin/external_node/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,6 @@ impl From<&ExternalNodeConfig> for L1SpecificContracts {

impl From<&ExternalNodeConfig> for ChainSpecificContracts {
fn from(config: &ExternalNodeConfig) -> Self {
dbg!(&config.remote);
ChainSpecificContracts {
ecosystem_contracts: EcosystemCommonContracts {
bridgehub_proxy_addr: config.remote.l1_bridgehub_proxy_addr,
Expand Down
2 changes: 1 addition & 1 deletion core/bin/zksync_server/src/node_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ impl MainNodeBuilder {
.add_prometheus_exporter_layer()?
.add_query_eth_client_layer()?
.add_settlement_mode_data()?
.add_gateway_migrator_layer()?
.add_gateway_client_layer()?
.add_gateway_migrator_layer()?
.add_gas_adjuster_layer()?;

// Add preconditions for all the components.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use zksync_gateway_migrator::GatewayMigrator;

use crate::{
implementations::resources::{
contracts::SettlementLayerContractsResource, eth_interface::EthInterfaceResource,
contracts::{L1ChainContractsResource, SettlementLayerContractsResource},
eth_interface::EthInterfaceResource,
settlement_layer::SettlementModeResource,
},
wiring_layer::{WiringError, WiringLayer},
Expand All @@ -18,7 +19,7 @@ pub struct GatewayMigratorLayer;
#[context(crate = crate)]
pub struct Input {
eth_client: EthInterfaceResource,
contracts: SettlementLayerContractsResource,
contracts: L1ChainContractsResource,
settlement_mode_resource: SettlementModeResource,
}

Expand Down

0 comments on commit 0ef2677

Please sign in to comment.