Skip to content

Commit

Permalink
Grammar fix, EIP number
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanSouza2 committed Mar 21, 2023
1 parent 101c4a6 commit e9e3773
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions EIPS/eip-creation_collision.md → EIPS/eip-6733.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
eip: <not assigned>
eip: 6733
title: Revert creation in case of collision
description: Revert contract creation if address already has code
author: Renan Rodrigues de Souza (@RenanSouza2)
Expand All @@ -12,7 +12,7 @@ created: 2023-03-20

## Abstract

There is no current definition to what happens when a contract creation happens in an address with code already deployed. This fix prevents an attack of deploying a contract code and later changing the code arbitrarily.
There is no current definition to what happens when a contract creation happens in an address with code already deployed. This fix prevents an attack of deploying contract code and later changing the code arbitrarily.

## Motivation

Expand All @@ -24,11 +24,11 @@ In contract creation where `new contract address` has a `CODEHASH != EMPTYCODEHA

## Rationale

One of the core tenants of smart contracts is it's code being guranteed not to change, with enougth computing power an attacker can change the code stored in an address to any other code allowing them to remove funds or transfer tokens.
One of the core tenants of smart contracts is its code being guaranteed not to change. With enougth computing power an attacker can change the code stored in an address to any other code, allowing them to remove funds or transfer tokens.

## Backwards Compatibility

There is a very small possibility of this collision happening to contract cration by contracts.
There is a very small possibility of this collision happening to contract creation by contracts.

## Test Cases

Expand Down Expand Up @@ -71,4 +71,4 @@ Copyright and related rights waived via [CC0](../LICENSE.md).

## Citation

Please cite this document as Renan Souza, "EIP-creation_collision: Revert creation in case of collision"
Please cite this document as Renan Souza, "EIP-6733: Revert creation in case of collision"

0 comments on commit e9e3773

Please sign in to comment.