validate_bytecode

Function validate_bytecode 

Source
pub fn validate_bytecode(bytecode: &[u8]) -> Result<Metadata>
Expand description

Validate bytecode without executing.

§Arguments

  • bytecode - The bytecode to validate

§Returns

Metadata if valid, error if invalid.