Skip to content

Commit

Permalink
fix(zk_toolbox): Correct secrets (#3004)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk_supervisor fmt` and `zk_supervisor
lint`.

Signed-off-by: Danil <deniallugo@gmail.com>
  • Loading branch information
Deniallugo authored Oct 2, 2024
1 parent 057705e commit b7ba428
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zk_toolbox/crates/zk_inception/src/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ 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,
ChainConfig, EcosystemConfig, CONTRACTS_FILE, EN_CONFIG_FILE, ERA_OBSERBAVILITY_DIR,
GENERAL_FILE, GENESIS_FILE, SECRETS_FILE,
};
use xshell::Shell;
use zksync_config::configs::Secrets;

use super::args::UpdateArgs;
use crate::{
Expand Down Expand Up @@ -183,7 +182,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 b7ba428

Please sign in to comment.