mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Release v0.5.0 (#80)
* Update README.md * Update to alpha.5 substrate packages * Add identity storage hasher * Bump version * Add CHANGELOG.md * Update crate metadata for publishing * Update url crate
This commit is contained in:
@@ -238,6 +238,7 @@ impl<K: Encode, V: Decode + Clone> StorageMap<K, V> {
|
||||
bytes.extend(&sp_core::twox_128(&self.storage_prefix)[..]);
|
||||
let encoded_key = key.encode();
|
||||
let hash = match self.hasher {
|
||||
StorageHasher::Identity => encoded_key.to_vec(),
|
||||
StorageHasher::Blake2_128 => sp_core::blake2_128(&encoded_key).to_vec(),
|
||||
StorageHasher::Blake2_128Concat => {
|
||||
// copied from substrate Blake2_128Concat::hash since StorageHasher is not public
|
||||
|
||||
Reference in New Issue
Block a user