From 2a1d37b16b9ccd1f2ce87f61a1b054cdedfd7d1e Mon Sep 17 00:00:00 2001 From: Danil Date: Wed, 22 May 2024 15:11:23 +0200 Subject: [PATCH] =?UTF-8?q?fix(toolbox):=20Temporary=20disable=20fast=20mo?= =?UTF-8?q?de=20for=20deploying=20l1=20contracts=20=E2=80=A6=20(#2011)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …for reth ## What ❔ ## Why ❔ ## Checklist - [ ] 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 fmt` and `zk lint`. - [ ] Spellcheck has been run via `zk spellcheck`. Signed-off-by: Danil --- .../crates/zk_inception/src/commands/ecosystem/init.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zk_toolbox/crates/zk_inception/src/commands/ecosystem/init.rs b/zk_toolbox/crates/zk_inception/src/commands/ecosystem/init.rs index 869ed48308d0..1132c4ae8461 100644 --- a/zk_toolbox/crates/zk_inception/src/commands/ecosystem/init.rs +++ b/zk_toolbox/crates/zk_inception/src/commands/ecosystem/init.rs @@ -281,8 +281,12 @@ fn deploy_ecosystem_inner( .script(&DEPLOY_ECOSYSTEM.script(), forge_args.clone()) .with_ffi() .with_rpc_url(config.l1_rpc_url.clone()) - .with_broadcast() - .with_slow(); + .with_broadcast(); + + if config.l1_network == L1Network::Localhost { + // It's a kludge for reth, just because it doesn't behave properly with large amount of txs + forge = forge.with_slow(); + } forge = fill_forge_private_key(forge, wallets_config.deployer_private_key())?;