Skip to content

feat(tests): additional test cases for eip-7825 #1565

@spencer-tb

Description

@spencer-tb

Extra Test Cases EIP-7825

Transaction Gas Limit Cap

Subcall Scenario

  • Test CALL, DELEGATECALL, STATICCALL, CALLCODE with gas_limit = min(remaining_gas, gas_value)
  • Test CALL with 16,777,217 + 1 gas and varying parameters (addr, etc.)
  • Test subcall behavior with large gas values

Gas limit edge cases

  • Test intrinsic gas limit > 16,777,217
  • Test data floor ≥ 16,777,217
  • Test tx with gas_limit = 16,777,217 but intrinsic gas > 16,777,217 (due to data, access list, or auth list)
  • Test contract creation tx with gas_limit = 16,777,217 and > 16,777,217
  • Test 1 or more blob transactions with gas_limit = 16,777,217
  • Test access list size > 16M
  • Test auth list size > 16M
  • Test transaction data size > 16M

Invalid and special values

  • Test invalid gas_limit value in header
  • Test multiple 16,777,217 gas limit txs exceeding block gas limit
  • Test off-by-one values:
    • 16,777,217
    • 16,777,216
    • 16,777,215
  • Test system-level transaction with exactly 30M gas

EIP-7825 specific scenarios

  • Test tx types affected by EIP-7825 with large gas values
  • Test refund behavior with high gas values
  • Test execution with Run with execute for edge gas values

Fork Transition

  • Test transactions accepted before fork activation
  • Test transactions rejected before fork
  • Test transactions accepted after fork activation (at cap)
  • Test transactions rejected after fork activation (above cap)
  • Test boundary behavior at exact fork transition timestamp

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-test-testsArea: tests for execution spec testsC-enhanceCategory: an improvement or new feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions