is_stylus_runnable

Function is_stylus_runnable 

Source
pub fn is_stylus_runnable(bytecode: &[u8]) -> bool
Expand description

Returns true if the bytecode is a runnable Stylus program: a classic or a root program (a fragment is not runnable on its own). Root code can only have been deployed at the contract-limit version, so no version gate is needed here.