Skip to content

Conversation

jwasinger
Copy link
Contributor

@jwasinger jwasinger commented Oct 15, 2025

  • previously, invocation of BalanceIncreaseSelfdestruct (transfer to recipient of selfdestruct) was duplicated in the hooked statedb and in the opcode handler for the selfdestruct opcode.
  • balance is burned immediately when the beneficiary of the selfdestruct is the sender, and the contract was created in the same transaction. Previously we emit two balance increases to the recipient (see above point), and a balance decrease from the sender.
  • Other than immediate balance transfer or burn, the other state changes related to account removal happen at transaction finalization. Let's invoke those hooks there.

@jwasinger jwasinger changed the title core: fix some incorrect EIP-6780 selfdestruct behavior core: fix some incorrect EIP-6780 selfdestruct tracer behavior Oct 17, 2025
@jwasinger jwasinger marked this pull request as ready for review October 17, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant