mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-23 19:09:56 +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:
1 parent
f5eecd746a
commit
fb00479a3d
4 files changed
+27
-17
No files matched your search
@@ -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