-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add EIP: SETCODE instruction #6913
Conversation
✅ All reviewers have approved. |
The commit 4e36006 (as a parent of dd4535f) contains errors. |
I generated the test cases with my assembler |
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.
LGTM.
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.
All Reviewers Have Approved; Performing Automatic Merge...
SETCODE allows contracts to replace their code without clearing their internal state.
I hope SETCODE will be adopted at the same time that SELFDESTRUCT is broken, in order to preserve in-place code replacement.
Changes
Create EIP introducing SETCODE