File tree Expand file tree Collapse file tree 5 files changed +17
-0
lines changed
zkstack_cli/crates/zkstack/src/commands Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments