strip_stylus_prefix

Function strip_stylus_prefix 

Source
pub fn strip_stylus_prefix(bytecode: &[u8]) -> Result<(&[u8], u8), &'static str>
Expand description

Strips the 4-byte Stylus prefix from contract bytecode.

Returns (stripped_bytecode, version_byte) or an error if the bytecode is too short or doesn’t have the Stylus discriminant.