File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
crates/rpc/rpc-eth-api/src/helpers Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -766,10 +766,14 @@ pub trait Call:
766766 warn ! ( target: "rpc::eth::call" , ?request, ?global_gas_cap, "Capping gas limit to global gas cap" ) ;
767767 request. as_mut ( ) . set_gas_limit ( global_gas_cap) ;
768768 }
769+ } else {
770+ // cap request's gas limit to call gas limit
771+ request. as_mut ( ) . set_gas_limit ( self . call_gas_limit ( ) ) ;
769772 }
770773
771- // apply configured gas cap
772- evm_env. block_env . gas_limit = self . call_gas_limit ( ) ;
774+ // Disable block gas limit check to allow executing transactions with higher gas limit (call
775+ // gas limit): https://github.com/paradigmxyz/reth/issues/18577
776+ evm_env. cfg_env . disable_block_gas_limit = true ;
773777
774778 // Disabled because eth_call is sometimes used with eoa senders
775779 // See <https://github.com/paradigmxyz/reth/issues/1959>
You can’t perform that action at this time.
0 commit comments