test_call_zero_value_to_self_destructed_same_tx_account()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_call_zero_value_to_self_destructed_same_tx_account@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_call_zero_value_to_self_destructed_same_tx_account --fork Amsterdam
Verify CALL with zero value to a same transaction selfdestructed account charges no new account state gas.
Value transfer gates the new account creation charge. Under the correct spec the block header reflects only the CREATE's single new account state gas charge. A spurious charge on the zero value CALL (value gate broken) would double the state gas component.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py
1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.