Skip to content
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

EIP 684: Prevent overwriting contracts #358

Merged
merged 2 commits into from
Aug 16, 2018

Conversation

germsvel
Copy link
Contributor

Why this change?

There was an issue with contract creation that could result in contracts being
overwritten. The solution is to check for a positive nonce or nonempty code
hash in the account that is about to be created. If that's the case, the
contract creation needs to fail instead of overwriting the account.

For more information see ethereum/EIPs#684

This also closes #357

There was an issue with contract creation that could overwrite
contracts. The solution is to check for a positive nonce or nonempty
code hash in the account that is about to be created. If that's the
case, the contract creation needs to fail instead of overwriting the
account.

For more information see ethereum/EIPs#684
Copy link
Member

@ayrat555 ayrat555 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@ghost ghost assigned ayrat555 Aug 16, 2018
@ayrat555 ayrat555 merged commit 6d2321b into master Aug 16, 2018
@ayrat555 ayrat555 deleted the gv-eip-684-prevent-contract-overwrite branch August 16, 2018 16:51
@ghost ghost removed the status: in progress label Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix "BlockchainTests/GeneralStateTests/stSystemOperationsTest/CreateHashCollision_d0g0v0.json"
2 participants