From f848d93fe4201905bbe9bd24ffbacf954f7ddd32 Mon Sep 17 00:00:00 2001 From: Ivan Schasny <31857042+ischasny@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:58:05 +0100 Subject: [PATCH] fix: token multiplier setter is taken from chain config (#2893) Fix `zki chain update-toen-multiplier-setter` to take the address from the chain config instead of the ecosystem. --- docs/guides/external-node/09_decentralization.md | 5 +++-- .../src/commands/chain/set_token_multiplier_setter.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/guides/external-node/09_decentralization.md b/docs/guides/external-node/09_decentralization.md index d97ec5b30cf..caf93a85a92 100644 --- a/docs/guides/external-node/09_decentralization.md +++ b/docs/guides/external-node/09_decentralization.md @@ -9,5 +9,6 @@ On the gossipnet, the data integrity will be protected by the BFT (byzantine fau ### Add `--enable-consensus` flag to your entry point command -For the consensus configuration to take effect you have to add `--enable-consensus` flag when -running the node. You can do that by editing the docker compose files (mainnet-external-node-docker-compose.yml or testnet-external-node-docker-compose.yml) and uncommenting the line with `--enable-consensus`. +For the consensus configuration to take effect you have to add `--enable-consensus` flag when running the node. You can +do that by editing the docker compose files (mainnet-external-node-docker-compose.yml or +testnet-external-node-docker-compose.yml) and uncommenting the line with `--enable-consensus`. diff --git a/zk_toolbox/crates/zk_inception/src/commands/chain/set_token_multiplier_setter.rs b/zk_toolbox/crates/zk_inception/src/commands/chain/set_token_multiplier_setter.rs index f92391c22f4..15f7de4c277 100644 --- a/zk_toolbox/crates/zk_inception/src/commands/chain/set_token_multiplier_setter.rs +++ b/zk_toolbox/crates/zk_inception/src/commands/chain/set_token_multiplier_setter.rs @@ -43,8 +43,8 @@ pub async fn run(args: ForgeScriptArgs, shell: &Shell) -> anyhow::Result<()> { .l1_rpc_url .expose_str() .to_string(); - let token_multiplier_setter_address = ecosystem_config - .get_wallets() + let token_multiplier_setter_address = chain_config + .get_wallets_config() .context(MSG_WALLETS_CONFIG_MUST_BE_PRESENT)? .token_multiplier_setter .context(MSG_WALLET_TOKEN_MULTIPLIER_SETTER_NOT_FOUND)?