Skip to content

Commit

Permalink
fix: disable block gas limit for call --trace (foundry-rs#8496)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jul 22, 2024
1 parent 2544793 commit 62cdea8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/cast/bin/cmd/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 62cdea8

Please sign in to comment.