Skip to content

Commit

Permalink
Update eip-1712.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas authored Mar 27, 2019
1 parent 8dd93f9 commit c07826f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions EIPS/eip-1712.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ mostly argue that deploying unused opcode is not of much use so no
sane developers would do that, it would be better to just disallow
deployment of unused opcodes.

By only checking before adding contract code to the state, but not when
executing a contract creation transaction, we make sure this is
compatible with the current Solidity behavior of appending a metadata
hash to the end of bytecodes.

## Specification

After `HARD_FORK` number, before executing a contract creation
transaction, or adding contract code to the state, do the following
check:
After `HARD_FORK` number, before adding contract code to the state,
do the following check:

* Iterate over the code bytes one by one.
* If the code byte is a PUSH(n) opcode, skip next n bytes.
Expand Down

0 comments on commit c07826f

Please sign in to comment.