EIP-8246 (remove `SELFDESTRUCT` burn)
Removes the two paths by which SELFDESTRUCT still destroys ETH. This is a prerequisite of EIP-7708 rather than an adjacent EIP — 7708's current text lists requires: 8246 and no longer specifies a burn — which is what lets the 7708 implementation land with no Burn log at all. That is a sequencing constraint rather than a code one: 8246 must be live before 7708 is, or 7708 would claim complete native-value logging while two burn paths went unlogged.
Rule 1: a same-transaction account destructing to itself keeps its balance. State::selfdestruct moves the balance whenever the beneficiary differs; for the destruct-to-self case one predicate, selfdestruct_to_self_burns, holds the revision rule: always before Cancun, only for a same-transaction account under EIP-6780, never under EIP-8246.
Rule 2: at finalization a destructed account holding a balance is preserved — nonce reset, code and storage cleared, balance untouched — rather than deleted. Nonce and code are cleared first and EIP-161 is applied to the result, so an empty account is still deleted. Rule 2 also covers the EIP's second burn, value sent to an account already marked for selfdestruction, because it keys on the balance rather than on who the beneficiary was.
Gated on a new eip_8246_active(), which is >= MONAD_ETH_AMSTERDAM in both trait families; pre-Amsterdam revisions must keep burning.
Reserve balance is deliberately unchanged
A preserved account is a funded, nonce-0, codeless address, and no predicate distinguishes it from an ordinary pre-funded address — three Account fields match by construction, and the fourth, incarnation, is drawn from the same source for both and is absent from the merkle account. So it takes the existing MIP-4 floor exactly as a pre-funded address does today. Exempting it would mean making the storage-generation key carry account provenance, and that equivalence is the reason not to.
Spec tests
No change to the Amsterdam exclusion list. The Amsterdam suite is disabled at
this commit and opens once every Amsterdam EIP is in the tree. Nothing needs
excluding: the pinned bundle is generated with 8246 in effect, and its nine
selfdestruct fixtures all pass against this tree. The unit tests are the gate
on this PR.
Testing
Full MONAD_COMPILER_TESTING=ON build clean. ctest clean apart from the known BacktraceTest.works. All spec-test jobs pass. clang-format and license.sh clean.
Known limitation: the exec-event schema cannot express a code-cleared surviving account.
🤖 Generated with Claude Code