Skip to content

Commit 3d6133a

Browse files
committed
fixes
1 parent d8daa55 commit 3d6133a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/prague/eip7623_increase_calldata_cost/test_refunds.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ def code_storage(refund_type: RefundType) -> Dict:
115115
return {}
116116

117117

118+
@pytest.fixture
119+
def contract_creating_tx() -> bool:
120+
"""
121+
Override fixture in order to avoid a circular fixture dependency since
122+
none of theses tests are contract creating transactions.
123+
"""
124+
return False
125+
126+
118127
@pytest.fixture
119128
def execution_gas_used(
120129
tx_intrinsic_gas_cost_before_execution: int,
@@ -215,12 +224,12 @@ def test_gas_refunds_from_data_floor(
215224
tx: Transaction,
216225
tx_floor_data_cost: int,
217226
tx_intrinsic_gas_cost_before_execution: int,
218-
execution_gas_cost: int,
227+
execution_gas_used: int,
219228
refund: int,
220229
refund_test_type: RefundTestType,
221230
) -> None:
222231
"""Test gas refunds deducted from the execution gas cost and not the data floor."""
223-
gas_used = tx_intrinsic_gas_cost_before_execution + execution_gas_cost - refund
232+
gas_used = tx_intrinsic_gas_cost_before_execution + execution_gas_used - refund
224233
if refund_test_type == RefundTestType.EXECUTION_GAS_MINUS_REFUND_LESS_THAN_DATA_FLOOR:
225234
assert gas_used < tx_floor_data_cost
226235
elif refund_test_type == RefundTestType.EXECUTION_GAS_MINUS_REFUND_GREATER_THAN_DATA_FLOOR:

0 commit comments

Comments
 (0)