Skip to content

Commit

Permalink
Also rename invalid to abort
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Mar 1, 2019
1 parent 839f3fd commit 324ab58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EIPS/eip-1803.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,22 @@ type: Standard Track
category: Core
status: Draft
created: 2017-07-28
requires: 141
---

## Abstract

Rename the `BALANCE`, `SHA3`, `NUMBER`, `GASLIMIT` and `GAS` opcodes to reflect their true meaning.
Rename the `BALANCE`, `SHA3`, `NUMBER`, `GASLIMIT`, `GAS` and `INVALID` opcodes to reflect their true meaning.

## Specification

Rename the opcodes as follows:
- `BALANCE` to `EXTBALANCE` to be in line with `EXTCODESIZE` and `EXTCODECOPY`
- `BALANCE` to `EXTBALANCE` to be in line with `EXTCODESIZE`, `EXTCODECOPY` and `EXTCODEHASH`
- `SHA3` to `KECCAK256`
- `NUMBER` to `BLOCKNUMBER`
- `GASLIMIT` to `BLOCKGASLIMIT` to avoid confusion with the gas limit of the transaction
- `GAS` to `GASLEFT` to be clear what it refers to
- `INVALID` to `ABORT` to clearly articulate when someone refers this opcode as opposed to "any invalid opcode"

## Backwards Compatibility

Expand Down

0 comments on commit 324ab58

Please sign in to comment.