mirror of
https://github.com/status-im/EIPs.git
synced 2025-01-13 00:04:32 +00:00
550fb10422
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
1.3 KiB
1.3 KiB
eip | title | author | discussions-to | type | category | status | created | requires |
---|---|---|---|---|---|---|---|---|
1803 | Rename opcodes for clarity | Alex Beregszaszi (@axic) | https://ethereum-magicians.org/t/eip-1803-rename-opcodes-for-clarity/3345 | Standards Track | Interface | Draft | 2017-07-28 | 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
) 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"
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
Copyright and related rights waived via CC0.