We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84cc036 commit dd83fbaCopy full SHA for dd83fba
tests/cancun/eip5656_mcopy/test_mcopy_memory_expansion.py
@@ -115,11 +115,17 @@ def block_gas_limit() -> int: # noqa: D103
115
116
@pytest.fixture
117
def tx_gas_limit( # noqa: D103
118
+ fork: Fork,
119
call_exact_cost: int,
120
block_gas_limit: int,
121
successful: bool,
122
) -> int:
- return min(call_exact_cost - (0 if successful else 1), block_gas_limit)
123
+ return min(
124
+ call_exact_cost - (0 if successful else 1),
125
+ # If the transaction gas limit cap is not set (pre-osaka),
126
+ # use the block gas limit
127
+ fork.transaction_gas_limit_cap() or block_gas_limit,
128
+ )
129
130
131
0 commit comments