chore: enforce max tx gas limit on estimate and accesslit (#18612)

This commit is contained in:
Matthias Seitz
2025-09-22 13:04:26 +02:00
committed by GitHub
parent 39d5563ce8
commit 0bd2097995
2 changed files with 0 additions and 6 deletions

View File

@@ -398,9 +398,6 @@ pub trait EthCall: EstimateCall + Call + LoadPendingBlock + LoadBlock + FullEthA
// <https://github.com/ethereum/go-ethereum/blob/8990c92aea01ca07801597b00c0d83d4e2d9b811/internal/ethapi/api.go#L1476-L1476>
evm_env.cfg_env.disable_base_fee = true;
// Disable EIP-7825 transaction gas limit to support larger transactions
evm_env.cfg_env.tx_gas_limit_cap = Some(u64::MAX);
// Disabled because eth_createAccessList is sometimes used with non-eoa senders
evm_env.cfg_env.disable_eip3607 = true;

View File

@@ -53,9 +53,6 @@ pub trait EstimateCall: Call {
// <https://github.com/ethereum/go-ethereum/blob/ee8e83fa5f6cb261dad2ed0a7bbcde4930c41e6c/internal/ethapi/api.go#L985>
evm_env.cfg_env.disable_base_fee = true;
// Disable EIP-7825 transaction gas limit to support larger transactions
evm_env.cfg_env.tx_gas_limit_cap = Some(u64::MAX);
// set nonce to None so that the correct nonce is chosen by the EVM
request.as_mut().take_nonce();