test_call_with_value_to_coinbase_no_priority_fee_log()¶
Documentation for tests/amsterdam/eip7708_eth_transfer_logs/test_transfer_logs.py::test_call_with_value_to_coinbase_no_priority_fee_log@2119b382.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7708_eth_transfer_logs/test_transfer_logs.py::test_call_with_value_to_coinbase_no_priority_fee_log --fork Amsterdam
Verify no Transfer log is emitted for the coinbase priority fee.
A contract executes CALL with nonzero value to the coinbase address, and the transaction pays a nonzero priority fee to that same coinbase. Only the CALL-with-value must produce a Transfer log; the priority fee crediting happens outside the EVM as a protocol-level balance change and must not emit a log.
An implementation that hooks all balance additions (instead of only CALL / SELFDESTRUCT / tx-level value transfers) would emit an extra Transfer log for the fee and fail the exact-log assertion.
Source code in tests/amsterdam/eip7708_eth_transfer_logs/test_transfer_logs.py
1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.