AlertSourceDiscuss
Skip to content

EIP-1803: Rename opcodes for clarity

🚧 StagnantInterface

Stagnant

This EIP has had no recent activity for at least 6 months, and has automatically been marked as stagnant. This EIP should not be used in production.

If you are interested in helping move this EIP to final, create a PR to move this EIP back to Draft and add yourself as an author, and an EIP editor will help guide you through the process. Thank you!

AuthorsAlex Beregszaszi (@axic)
Created2017-07-28

Abstract ​

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

Specification ​

Rename the opcodes as follows:

  • BALANCE (0x31) to EXTBALANCE to be in line with EXTCODESIZE, EXTCODECOPY and EXTCODEHASH
  • SHA3 (0x20) to KECCAK256
  • NUMBER (0x43) to BLOCKNUMBER
  • GASLIMIT (0x45) to BLOCKGASLIMIT to avoid confusion with the gas limit of the transaction
  • GAS (0x5a) to GASLEFT to be clear what it refers to
  • INVALID (0xfe) to ABORT to clearly articulate when someone refers this opcode as opposed to "any invalid opcode"

Backwards Compatibility ​

This has no effect on any code. It can influence what mnemonics assemblers will use.

Implementation ​

Not applicable.

References ​

EIP-6 previously renamed SUICIDE (0xff) to SELFDESTRUCT. Renaming SHA3 was previously proposed by EIP-59.

Copyright and related rights waived via CC0.

Citation

Please cite this document as:

Alex Beregszaszi, "EIP-1803: Rename opcodes for clarity[DRAFT]," Ethereum Improvement Proposals, no. 1803, 2017. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-1803.