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:
Andrew Jones
2020-03-25 14:43:03 +00:00
committed by GitHub
parent f5eecd746a
commit fb00479a3d
4 changed files with 27 additions and 17 deletions
+1
View File
@@ -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