Function subxt_metadata::get_metadata_per_pallet_hash
source · pub fn get_metadata_per_pallet_hash<T: AsRef<str>>(
metadata: &RuntimeMetadataV14,
pallets: &[T]
) -> [u8; 32]
Expand description
Obtain the hash representation of a frame_metadata::RuntimeMetadataV14
hashing only the provided pallets.
Note: This is similar to get_metadata_hash
, but performs hashing only of the provided
pallets if they exist. There are cases where the runtime metadata contains a subset of
the pallets from the static metadata. In those cases, the static API can communicate
properly with the subset of pallets from the runtime node.