feat(tests): add more 7928 test descriptions #1815
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗒️ Description
This PR adds three new BAL edge-case tests covering 7702 multi-authorization behavior and the two distinct post-Cancún SELFDESTRUCT outcomes:
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.SELFDESTRUCT Sending Funds Back to Sender:
A pre-existing contract
CexecutesSELFDESTRUCT(Alice).Under EIP-6780,
Cremains intact (no code deletion) and all its balance is transferred toAlice.BAL must show
C’s balance going to zero andAlicereceiving the value.SELFDESTRUCT That Burns ETH (Created and Destroyed in Same Tx):
A contract
Dis created and, in the same transaction, executesSELFDESTRUCT(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.