Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jan 23, 2025
1 parent 49bd05d commit 762c8ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/prague/eip7623_increase_calldata_cost/test_refunds.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 762c8ee

Please sign in to comment.