pub fn encode_storage_key_with_info_to<Resolver, Keys>(
pallet_name: &str,
storage_entry: &str,
keys: Keys,
storage_info: &StorageInfo<'_, <Resolver as TypeResolver>::TypeId>,
type_resolver: &Resolver,
out: &mut Vec<u8>,
) -> Result<(), StorageKeyEncodeError>where
Keys: IntoStorageKeys,
Resolver: TypeResolver,
<Resolver as TypeResolver>::TypeId: Clone + Debug,
Expand description
Encode a complete storage key for a given pallet and storage entry and a set of keys that
are each able to be encoded via scale_encode::EncodeAsType
.
Unlike encode_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 encoding multiple keys for the same storage entry.