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:
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
119128def 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 :
You can’t perform that action at this time.
0 commit comments