From 133709a34551529ea970d97c52532aaed90a06d6 Mon Sep 17 00:00:00 2001 From: Stanislav Breadless Date: Fri, 20 Dec 2024 10:55:49 +0100 Subject: [PATCH] fix zkstack --- .../zkstack/src/commands/chain/migrate_from_gateway.rs | 7 +++++++ .../zkstack/src/commands/chain/migrate_to_gateway.rs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/zkstack_cli/crates/zkstack/src/commands/chain/migrate_from_gateway.rs b/zkstack_cli/crates/zkstack/src/commands/chain/migrate_from_gateway.rs index 5b98039fb76..7965d8973ce 100644 --- a/zkstack_cli/crates/zkstack/src/commands/chain/migrate_from_gateway.rs +++ b/zkstack_cli/crates/zkstack/src/commands/chain/migrate_from_gateway.rs @@ -212,6 +212,13 @@ pub async fn run(args: MigrateFromGatewayArgs, shell: &Shell) -> anyhow::Result< .as_mut() .context("sender")? .wait_confirmations = Some(0); + // Undoing what was changed during migration to gateway. + // TODO(EVM-925): maybe remove this logic. + eth_config + .sender + .as_mut() + .expect("sender") + .max_aggregated_tx_gas = 15000000; eth_config .sender .as_mut() diff --git a/zkstack_cli/crates/zkstack/src/commands/chain/migrate_to_gateway.rs b/zkstack_cli/crates/zkstack/src/commands/chain/migrate_to_gateway.rs index ab86307abe4..ed23cd8ef93 100644 --- a/zkstack_cli/crates/zkstack/src/commands/chain/migrate_to_gateway.rs +++ b/zkstack_cli/crates/zkstack/src/commands/chain/migrate_to_gateway.rs @@ -402,6 +402,13 @@ pub async fn run(args: MigrateToGatewayArgs, shell: &Shell) -> anyhow::Result<() .as_mut() .context("sender")? .wait_confirmations = Some(0); + // TODO(EVM-925): the number below may not always work, especially for large prices on + // top of Gateway. This field would have to be either not used on GW or transformed into u64. + eth_config + .sender + .as_mut() + .expect("sender") + .max_aggregated_tx_gas = 4294967295; eth_config .sender .as_mut()