Skip to content

Commit

Permalink
fix: load chain config only instead of all the config
Browse files Browse the repository at this point in the history
  • Loading branch information
antomor committed Oct 20, 2023
1 parent d9dff63 commit 9769cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/bin/zksync_api/src/bin/dev_ticker_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -37,7 +37,7 @@ fn load_tokens(path: impl AsRef<Path>) -> Result<Vec<TokenInfo>, 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 {
Expand Down

0 comments on commit 9769cf1

Please sign in to comment.