Dip 1803
dip: 1803 title: Rename opcodes for clarity author: Alex Beregszaszi (@axic) Digitalia editing author: Cosimo Constantinos cosimo@juro.net, et al. discussions-to: https://digitalia-magicians.org/t/dip-1803-rename-opcodes-for-clarity/3345 type: Standards Track category: Interface status: Stagnant created: 2017-07-28 Created for Digitalia: 2025-01-07 requires: 141
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¶
DIP-6 previously renamed SUICIDE (0xff) to SELFDESTRUCT.
Renaming SHA3 was previously proposed by DIP-59.
Copyright¶
© Crown © Crown Copyright 2026. Published by the Royal Government of the Dominion of Atlantis.
Licensed under the Juro Restricted License Version 2. See https://juro.net/jrl for details.