Skip to content

Commit 75f0737

Browse files
committed
refactor(tests): EIP-3860: Add gas-used check to tests
1 parent e58af1c commit 75f0737

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/shanghai/eip3860_initcode/test_initcode.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
StateTestFiller,
2525
Transaction,
2626
TransactionException,
27+
TransactionReceipt,
2728
ceiling_division,
2829
compute_create_address,
2930
)
@@ -291,6 +292,8 @@ def tx(
291292
gas_price=10,
292293
error=tx_error,
293294
sender=sender,
295+
# The entire gas limit is expected to be consumed.
296+
expected_receipt=TransactionReceipt(gas_used=gas_limit),
294297
)
295298

296299
@pytest.fixture

0 commit comments

Comments
 (0)