File tree Expand file tree Collapse file tree
constantinople/eip1052_extcodehash
osaka/eip7825_transaction_gas_limit_cap Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1617,7 +1617,7 @@ def extcode_checks(target: Address | Bytecode) -> Bytecode:
16171617 tx = Transaction (
16181618 sender = pre .fund_eoa (),
16191619 to = code_address ,
1620- gas_limit = 500_000 ,
1620+ gas_limit = 1_000_000 ,
16211621 )
16221622
16231623 # Pre-Cancun, CALLCODE/DELEGATECALL executes SELFDESTRUCT in A's
Original file line number Diff line number Diff line change 1212from typing import Callable , List
1313
1414import pytest
15+ from execution_testing .forks import Osaka
1516from execution_testing import (
1617 AccessList ,
1718 Account ,
@@ -391,7 +392,9 @@ def test_tx_gas_limit_cap_full_calldata(
391392 data = byte_data * num_of_bytes ,
392393 gas_limit = tx_gas_limit ,
393394 sender = pre .fund_eoa (),
394- error = TransactionException .GAS_LIMIT_EXCEEDS_MAXIMUM
395+ error = TransactionException .INTRINSIC_GAS_BELOW_FLOOR_GAS_COST
396+ if exceed_tx_gas_limit and fork > Osaka
397+ else TransactionException .GAS_LIMIT_EXCEEDS_MAXIMUM
395398 if correct_intrinsic_cost_in_transaction_gas_limit
396399 and exceed_tx_gas_limit
397400 else TransactionException .INTRINSIC_GAS_BELOW_FLOOR_GAS_COST
You can’t perform that action at this time.
0 commit comments