Skip to content

Commit 80e639e

Browse files
chore: return with_slow() (#4633)
chore: return with_slow()
2 parents afb4777 + 443d141 commit 80e639e

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

zkstack_cli/crates/zkstack/src/commands/chain/gateway/migrate_token_balances.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ pub async fn migrate_token_balances_from_gateway(
410410
// .with_rpc_url(l2_rpc_url.clone())
411411
// .with_broadcast()
412412
// .with_zksync()
413+
// .with_slow()
413414
// .with_gas_per_pubdata(8000)
414415
// .with_calldata(&calldata);
415416

zkstack_cli/crates/zkstack/src/commands/ctm/commands/init_new_ctm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ pub async fn deploy_new_ctm(
191191
.with_calldata(&calldata)
192192
.with_rpc_url(l1_rpc_url.to_string());
193193

194+
if config.l1_network == L1Network::Localhost {
195+
// It's a kludge for reth, just because it doesn't behave properly with large amount of txs
196+
forge = forge.with_slow();
197+
}
198+
194199
if let Some(address) = sender {
195200
forge = forge.with_sender(address);
196201
} else {

zkstack_cli/crates/zkstack/src/commands/dev/commands/upgrades/default_ecosystem_upgrade.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ async fn no_governance_prepare(
255255
)
256256
.with_ffi()
257257
.with_rpc_url(l1_rpc_url)
258+
.with_slow()
258259
.with_gas_limit(1_000_000_000_000)
259260
.with_broadcast();
260261

zkstack_cli/crates/zkstack/src/commands/ecosystem/common.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ pub async fn deploy_l1_core_contracts(
6363
.with_ffi()
6464
.with_rpc_url(l1_rpc_url.to_string());
6565

66+
if config.l1_network == L1Network::Localhost {
67+
// It's a kludge for reth, just because it doesn't behave properly with large amount of txs
68+
forge = forge.with_slow();
69+
}
70+
6671
if let Some(address) = sender {
6772
forge = forge.with_sender(address);
6873
} else {

zkstack_cli/crates/zkstack/src/commands/ecosystem/register_ctm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ pub async fn register_ctm_on_existing_bh(
103103
.with_calldata(&calldata)
104104
.with_rpc_url(l1_rpc_url.to_string());
105105

106+
if config.l1_network == L1Network::Localhost {
107+
// It's a kludge for reth, just because it doesn't behave properly with large amount of txs
108+
forge = forge.with_slow();
109+
}
110+
106111
if let Some(address) = sender {
107112
forge = forge.with_sender(address);
108113
} else {

0 commit comments

Comments
 (0)