Skip to content

Commit

Permalink
fix(zk_toolbox): Correct secrets
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <deniallugo@gmail.com>
  • Loading branch information
Deniallugo committed Oct 2, 2024
1 parent eed8198 commit 5a35372
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zk_toolbox/crates/zk_inception/src/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ use common::{
yaml::{merge_yaml, ConfigDiff},
};
use config::{
traits::ReadConfigWithBasePath, ChainConfig, EcosystemConfig, CONTRACTS_FILE, EN_CONFIG_FILE,
ERA_OBSERBAVILITY_DIR, GENERAL_FILE, GENESIS_FILE, SECRETS_FILE,
traits::{ReadConfig, ReadConfigWithBasePath},
ChainConfig, EcosystemConfig, CONTRACTS_FILE, EN_CONFIG_FILE, ERA_OBSERBAVILITY_DIR,
GENERAL_FILE, GENESIS_FILE, SECRETS_FILE,
};
use xshell::Shell;
use zksync_config::configs::Secrets;
Expand Down Expand Up @@ -183,7 +184,7 @@ async fn update_chain(
)?;
}

let secrets = Secrets::read_with_base_path(shell, secrets)?;
let secrets = chain.get_secrets_config()?;

if let Some(db) = secrets.database {
if let Some(url) = db.server_url {
Expand Down

0 comments on commit 5a35372

Please sign in to comment.