File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
tests/prague/eip7623_increase_calldata_cost Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,15 @@ def code_storage(refund_type: RefundType) -> Dict:
115
115
return {}
116
116
117
117
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
+
118
127
@pytest .fixture
119
128
def execution_gas_used (
120
129
tx_intrinsic_gas_cost_before_execution : int ,
@@ -215,12 +224,12 @@ def test_gas_refunds_from_data_floor(
215
224
tx : Transaction ,
216
225
tx_floor_data_cost : int ,
217
226
tx_intrinsic_gas_cost_before_execution : int ,
218
- execution_gas_cost : int ,
227
+ execution_gas_used : int ,
219
228
refund : int ,
220
229
refund_test_type : RefundTestType ,
221
230
) -> None :
222
231
"""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
224
233
if refund_test_type == RefundTestType .EXECUTION_GAS_MINUS_REFUND_LESS_THAN_DATA_FLOOR :
225
234
assert gas_used < tx_floor_data_cost
226
235
elif refund_test_type == RefundTestType .EXECUTION_GAS_MINUS_REFUND_GREATER_THAN_DATA_FLOOR :
You can’t perform that action at this time.
0 commit comments