Skip to content

Commit 762c8ee

Browse files
committed
Add comments
1 parent 49bd05d commit 762c8ee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/prague/eip7623_increase_calldata_cost/test_refunds.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,19 @@ def test_gas_refunds_from_data_floor(
277277
raise ValueError("Invalid refund test type")
278278
if gas_used < tx_floor_data_cost:
279279
gas_used = tx_floor_data_cost
280+
# This is the actual test verification:
281+
# - During test filling, the receipt returned by the transition tool (t8n) is verified against
282+
# the expected receipt.
283+
# - During test consumption, this is reflected in the balance difference and the state
284+
# root.
280285
tx.expected_receipt = TransactionReceipt(gas_used=gas_used)
281286
state_test(
282287
pre=pre,
283288
post={
284289
tx.to: {
285-
"storage": {0: 0}, # Verify storage was cleared
290+
# Verify that the storage was cleared (for storage clear refund).
291+
# See `code_storage` fixture for more details.
292+
"storage": {0: 0},
286293
}
287294
},
288295
tx=tx,

0 commit comments

Comments
 (0)