Skip to main content

UNDECODABLE_INSTRUCTION

Constant UNDECODABLE_INSTRUCTION 

Source
pub const UNDECODABLE_INSTRUCTION: ContractInstruction;
Expand description

Instruction stored by BasicEagerInstructions::decode() in slots whose bytes do not decode into a valid instruction and after the last one.

Contract code is only expected to contain legal instructions, so this is only reachable by jumping into the middle of one or by falling through the end of the code. unimp always fails, so it never continues to the next instruction, as BasicEagerInstructions::decode() requires.