From 762c8ee3af3733a9c5648ab6fa14d985210e25ef Mon Sep 17 00:00:00 2001 From: Mario Vega Date: Thu, 23 Jan 2025 15:10:27 +0000 Subject: [PATCH] Add comments --- .../eip7623_increase_calldata_cost/test_refunds.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/prague/eip7623_increase_calldata_cost/test_refunds.py b/tests/prague/eip7623_increase_calldata_cost/test_refunds.py index a4102dfb58d..a5829bbb105 100644 --- a/tests/prague/eip7623_increase_calldata_cost/test_refunds.py +++ b/tests/prague/eip7623_increase_calldata_cost/test_refunds.py @@ -277,12 +277,19 @@ def test_gas_refunds_from_data_floor( raise ValueError("Invalid refund test type") if gas_used < tx_floor_data_cost: gas_used = tx_floor_data_cost + # This is the actual test verification: + # - During test filling, the receipt returned by the transition tool (t8n) is verified against + # the expected receipt. + # - During test consumption, this is reflected in the balance difference and the state + # root. tx.expected_receipt = TransactionReceipt(gas_used=gas_used) state_test( pre=pre, post={ tx.to: { - "storage": {0: 0}, # Verify storage was cleared + # Verify that the storage was cleared (for storage clear refund). + # See `code_storage` fixture for more details. + "storage": {0: 0}, } }, tx=tx,