-
Notifications
You must be signed in to change notification settings - Fork 334
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
Balance of an account post SELFDESTRUCT #1170
Conversation
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.
Check the suicide logic
balance: 10 | ||
code: | | ||
:yul { | ||
selfdestruct(0x1000) |
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.
In the end this is much more readable then the suicide contract with complex selector logic in statetest
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.
Yes, but it can't check things such as "SELFDESTRUCT(dst1) the first time you're called, SELFDESTRUCT(dst2) the second time" without additional logic.
src/BlockchainTestsFiller/ValidBlocks/bcStateTests/selfdestructBalanceFiller.yml
Outdated
Show resolved
Hide resolved
src/BlockchainTestsFiller/ValidBlocks/bcStateTests/selfdestructBalanceFiller.yml
Show resolved
Hide resolved
src/README vector description? |
Added. No added test vectors because they are also checked by other tests. |
ok now we have too many commits and build check is failing. |
I don't know what is happening, replaced by #1181 |
Immediately after SELFDESTRUCT the balance is zero
When called again (in the same transaction), the value seems to disappear
When called again in a following transaction, the value causes the address to be reborn