Function sc_executor::read_embedded_version
source ยท pub fn read_embedded_version(
blob: &RuntimeBlob,
) -> Result<Option<RuntimeVersion>, WasmError>
Expand description
Take the runtime blob and scan it for the custom wasm sections containing the version
information and construct the RuntimeVersion
from them.
If there are no such sections, it returns None
. If there is an error during decoding those
sections, Err
will be returned.