test_selfdestruct_to_self_cross_tx_no_log()¶
Documentation for tests/amsterdam/eip7708_eth_transfer_logs/test_transfer_logs.py::test_selfdestruct_to_self_cross_tx_no_log@ffe48572.
Generate fixtures for these test cases for Bogota with:
Test that selfdestruct-to-self in a cross-tx context emits no log.
A contract created in Tx1 is not in created_accounts during Tx2. Selfdestruct-to-self in Tx2 emits no log per EIP-7708: no Burn log (not same-tx) and no Transfer log (not a different account).
Contract creation tx (to=None) deploying SELFDESTRUCT(ADDRESS),
value=2000. Logs: [transfer_log(sender, created, 2000)]
Tx2: Call created contract directly, value=0. Logs: [] Post: contract keeps balance (not deleted, not in created_accounts in Tx2)
Source code in tests/amsterdam/eip7708_eth_transfer_logs/test_transfer_logs.py
1430 1431 1432 1433 1434 1435 1436 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 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 2 forks.