created | author | eip | requires | status | title | type | category |
---|---|---|---|---|---|---|---|
2017-07-28T00:00:00.000Z |
Alex Beregszaszi (@axic) |
1803 |
141 |
Draft |
Rename opcodes for clarity |
Standards Track |
Interface |
Rename the BALANCE
, SHA3
, NUMBER
, GASLIMIT
, GAS
and INVALID
opcodes to reflect their true meaning.
Rename the opcodes as follows:
BALANCE
(0x31
) toEXTBALANCE
to be in line withEXTCODESIZE
,EXTCODECOPY
andEXTCODEHASH
SHA3
(0x20
) toKECCAK256
NUMBER
(0x43
) toBLOCKNUMBER
GASLIMIT
(0x45
) toBLOCKGASLIMIT
to avoid confusion with the gas limit of the transactionGAS
(0x5a
) toGASLEFT
to be clear what it refers toINVALID
(0xfe
) toABORT
to clearly articulate when someone refers this opcode as opposed to "any invalid opcode"
This has no effect on any code. It can influence what mnemonics assemblers will use.
Not applicable.
EIP-6 previously renamed SUICIDE
(0xff
) to SELFDESTRUCT
. Renaming SHA3
was previously proposed by EIP-59.
Copyright and related rights waived via CC0.