sway_core::asm_generation

Function check_invalid_opcodes

Source
pub fn check_invalid_opcodes(
    handler: &Handler,
    asm: &FinalizedAsm,
) -> Result<(), ErrorEmitted>
Expand description

Checks for disallowed opcodes in non-contract code. i.e., if this is a script or predicate, we can’t use certain contract opcodes. See https://github.com/FuelLabs/sway/issues/350 for details.