Designated invalid EVM instruction
EIP-141 proposes the addition of a designated invalid EVM instruction, which can be used as a distinct reason to abort execution. The opcode 0xfe is designated as the INVALID instruction, which can be used to abort execution and duplicates as an ABORT instruction. This instruction was never used before and therefore has no effect on past contracts. The proposal aims to provide a more efficient and clear way to abort execution in smart contracts.
Video
Original
Abstract
An instruction is designated to remain as an invalid instruction.
Motivation
The invalid instruction can be used as a distinct reason to abort execution.
Specification
The opcode 0xfe
is the INVALID
instruction. It can be used to abort the execution (i.e. duplicates as an ABORT
instruction).
Backwards Compatibility
This instruction was never used and therefore has no effect on past contracts.
Copyright
Copyright and related rights waived via CC0.
Not miss a beat of EIPs' update?
Subscribe EIPs Fun to receive the latest updates of EIPs Good for Buidlers to follow up.
View all