referrerpolicy=no-referrer-when-downgrade

Function bp_runtime::storage_map_final_key

source ·
pub fn storage_map_final_key<H: StorageHasher>(
    pallet_prefix: &str,
    map_name: &str,
    key: &[u8],
) -> StorageKey
Expand description

This is a copy of the frame_support::storage::generator::StorageMap::storage_map_final_key for maps based on selected hasher.

We’re using it because to call storage_map_final_key directly, we need access to the runtime and pallet instance, which (sometimes) is impossible.