-
Notifications
You must be signed in to change notification settings - Fork 153
fix: persist code+account before DeleteAccount can verify #921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #921 +/- ##
=======================================
Coverage 65.49% 65.50%
=======================================
Files 318 318
Lines 22222 22226 +4
=======================================
+ Hits 14555 14559 +4
Misses 6502 6502
Partials 1165 1165
🚀 New features to boost your workflow:
|
| if obj.selfDestructed { | ||
| // For EIP-6780 same-tx self-destruct: persist code+account first so DeleteAccount's | ||
| // IsContract check can verify it, then immediately delete everything | ||
| if obj.code != nil && obj.dirtyCode && len(obj.code) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we test this path?
| } | ||
| } | ||
|
|
||
| func (suite *StateDBTestSuite) TestEIP6780SameTxCodePersistence() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we test the error cases here too?
Description
align selfdestruct behavior as go-ethereum
Closes: #905
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
mainbranch