Function sp_io::misc::runtime_version
source · [−]Expand description
Extract the runtime version of the given wasm blob by calling Core_version
.
Returns None
if calling the function failed for any reason or Some(Vec<u8>)
where
the Vec<u8>
holds the SCALE encoded runtime version.
Performance
Calling this function is very expensive and should only be done very occasionally. For getting the runtime version, it requires instantiating the wasm blob and calling a function in this blob.