Skip to content

Conversation

@nerolation
Copy link
Contributor

🗒️ Description

This PR adds three new BAL edge-case tests covering 7702 multi-authorization behavior and the two distinct post-Cancún SELFDESTRUCT outcomes:

  1. 7702 Double Authorization Reset:
    A single transaction includes two EIP-7702 authorizations for Alice—first setting delegation code, then clearing it.
    BAL must reflect the correct nonce increments (self-funded: 0→3; sponsored: 0→2) and must not include any code_changes, since the final code is empty.

  2. SELFDESTRUCT Sending Funds Back to Sender:
    A pre-existing contract C executes SELFDESTRUCT(Alice).
    Under EIP-6780, C remains intact (no code deletion) and all its balance is transferred to Alice.
    BAL must show C’s balance going to zero and Alice receiving the value.

  3. SELFDESTRUCT That Burns ETH (Created and Destroyed in Same Tx):
    A contract D is created and, in the same transaction, executes SELFDESTRUCT(D).
    Per EIP-6780, the ETH is burned rather than transferred.
    BAL must show D’s balance reduced to zero with no beneficiary receiving the value.

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