Skip to content

Commit

Permalink
update code size to 3+1 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Jun 17, 2024
1 parent e785fdf commit 427e408
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EIPS/eip-6800.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,13 @@ An account's `version`, `balance`, `nonce` and `code_size` fields are packed in
| Name | Offset | Size |
| ----------- | ------ | ---- |
| `version` | 0 | 1 |
| `nonce` | 4 | 8 |
| `code_size` | 12 | 4 |
| `code_size` | 5 | 3 |
| `nonce` | 8 | 8 |
| `balance` | 16 | 16 |

Bytes `1..3` are reserved for future use.
Bytes `1..4` are reserved for future use.

Note: the code size is stored on 3 bytes. To allow for an extension to 4 bytes without changing the account version is possible, reserved byte #4 should be allocated last.

When any account header field is set, the `version` field is also set to zero. The `code_keccak` and `code_size` fields are set upon contract or EoA creation.

Expand Down

0 comments on commit 427e408

Please sign in to comment.