pub fn check_wasm(wasm_code: &[u8], supported_features: &HashSet<String>) -> VmResult<()> {
    let module = deserialize_wasm(wasm_code)?;
    check_wasm_memories(&module)?;
    check_wasm_exports(&module)?;
    check_wasm_imports(&module, SUPPORTED_IMPORTS)?;
    check_wasm_features(&module, supported_features)?;
    Ok(())
}
/// Checks if the data is valid wasm and compatibility with the CosmWasm API (imports and exports)
Checks if the data is valid wasm and compatibility with the CosmWasm API (imports and exports)
Checks if the data is valid wasm and compatibility with the CosmWasm API ( imports and exports )
pub fn check_wasm(wasm_code: &[u8], supported_features: &HashSet<String>) -> VmResult<()> {
    let module = deserialize_wasm(wasm_code)?;
    check_wasm_memories(&module)?;
    check_wasm_exports(&module)?;
    check_wasm_imports(&module, SUPPORTED_IMPORTS)?;
    check_wasm_features(&module, supported_features)?;
    Ok(())
}
pub fn check_wasm ( wasm_code : & [ u8 ] , supported_features : & HashSet < String > ) -> VmResult < ( ) > { let module = deserialize_wasm ( wasm_code ) ? ; check_wasm_memories ( & module ) ? ; check_wasm_exports ( & module ) ? ; check_wasm_imports ( & module , SUPPORTED_IMPORTS ) ? ; check_wasm_features ( & module , supported_features ) ? ; Ok ( ( ) ) }
Checks if the data is valid wasm and compatibility with the CosmWasm API (imports and exports)
Checks if the data is valid wasm and compatibility with the CosmWasm API ( imports and exports )
wasm_code
&[u8]
supported_features
&HashSet<String>