HomeEIPsNewsletter
EIPsEIP-141
EIP-141

Designated invalid EVM instruction

FinalStandards Track: Core
Created: 2017-02-09
Alex Beregszaszi (@axic)
Original Proposal LinkEdit
1 min read

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
Anyone may contribute to propose contents.
Go propose
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 and related rights waived via CC0.

Further reading
Anyone may contribute to propose contents.
Go propose

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
Serve Ethereum Builders, Scale the Community.
Resources
GitHub
Supported by