From 62cdea8ff9e6efef011f77e295823b5f2dbeb3a1 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 22 Jul 2024 21:05:40 +0200 Subject: [PATCH] fix: disable block gas limit for call --trace (#8496) --- crates/cast/bin/cmd/call.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/cast/bin/cmd/call.rs b/crates/cast/bin/cmd/call.rs index d6025fe9ca3e..65ec11d6e6be 100644 --- a/crates/cast/bin/cmd/call.rs +++ b/crates/cast/bin/cmd/call.rs @@ -162,7 +162,13 @@ impl CallArgs { config.fork_block_number = Some(block_number); } - let (env, fork, chain) = TracingExecutor::get_fork_material(&config, evm_opts).await?; + let (mut env, fork, chain) = + TracingExecutor::get_fork_material(&config, evm_opts).await?; + + // modify settings that usually set in eth_call + env.cfg.disable_block_gas_limit = true; + env.block.gas_limit = U256::MAX; + let mut executor = TracingExecutor::new(env, fork, evm_version, debug, decode_internal); let value = tx.value.unwrap_or_default();