Skip to content

Missing BAL test cases related to EIP-6780 self destruct #2920

@jangko

Description

@jangko

Condition: A contract is created, and then modified, then self destructed in the same tx.
There are tests covering case where balance 0 -> x -> 0. And the last zero appear in the BAL balance changes.

  • No test to cover nonce 0 -> x -> 0.
  • No test to cover code hash EMPTY_CODEHASH -> x -> EMPTY_CODEHASH.
  • Same with storage.

Regarding the balance change postBalance=0 appear in the BAL looks unnecessary, but the behavior is consistent with how the state journal works. It just weird a non existent account have BAL entries.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions