pub fn decode_storage_key_with_info<Resolver>(
cursor: &mut &[u8],
storage_info: &StorageInfo<'_, <Resolver as TypeResolver>::TypeId>,
type_resolver: &Resolver,
) -> Result<StorageKey<<Resolver as TypeResolver>::TypeId>, StorageKeyDecodeError<<Resolver as TypeResolver>::TypeId>>
Expand description
Decode a storage key, returning information about it.
Unlike decode_storage_key
, which obtains the storage info internally given the pallet and storage entry names,
this function takes the storage info as an argument. This is useful if you already have the storage info available,
for example if you are decoding multiple keys for the same storage entry.
§Warning
Unlike decode_storage_key
, this does not check that the bytes start with the expected prefix; ensuring that the
storage information lines up with the bytes is the caller’s responsibility.