forc_util::bytecode

Type Alias InstructionWithBytes

Source
pub type InstructionWithBytes = (Result<Instruction, InvalidOpcode>, Vec<u8>);
Expand description

A tuple of an instruction and its corresponding bytes. Useful when needing to access the raw bytes of an instruction that is parsed as fuel_asm::InvalidOpcode, such as metadata in the preamble.