From 9769cf1bc165fd9b55a648ca5eb977e265e7987d Mon Sep 17 00:00:00 2001 From: Antonio Morrone Date: Fri, 20 Oct 2023 16:56:22 +0200 Subject: [PATCH] fix: load chain config only instead of all the config --- core/bin/zksync_api/src/bin/dev_ticker_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/bin/zksync_api/src/bin/dev_ticker_server.rs b/core/bin/zksync_api/src/bin/dev_ticker_server.rs index 8de0cd1f0..d967fa6de 100644 --- a/core/bin/zksync_api/src/bin/dev_ticker_server.rs +++ b/core/bin/zksync_api/src/bin/dev_ticker_server.rs @@ -11,7 +11,7 @@ use std::{ }; use structopt::StructOpt; use tokio::sync::Mutex; -use zksync_config::ZkSyncConfig; +use zksync_config::ChainConfig; use zksync_types::{network::Network, TokenInfo}; use zksync_utils::parse_env; @@ -37,7 +37,7 @@ fn load_tokens(path: impl AsRef) -> Result, serde_json::Err #[actix_web::main] async fn main() -> std::io::Result<()> { let _vlog_guard = vlog::init(); - let network = ZkSyncConfig::from_env().chain.eth.network; + let network = ChainConfig::from_env().eth.network; let opts = FeeTickerOpts::from_args(); if opts.sloppy {