Fix decl_storage map and linked_map for insert_ref (#3316)

* test

* fix

* bumpd version

* Update srml/support/procedural/src/storage/impls.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
thiolliere
2019-08-07 11:52:06 +02:00
committed by GitHub
parent 4ed67e03a4
commit 87e72d9327
3 changed files with 42 additions and 13 deletions
@@ -246,7 +246,7 @@ pub trait StorageMap<K: codec::Codec, V: codec::Codec> {
/// Store a value under this key into the provided storage instance; this can take any reference
/// type that derefs to `T` (and has `Encode` implemented).
/// Store a value under this key into the provided storage instance.
fn insert_ref<Arg: ?Sized + Encode, S: HashedStorage<Twox128>>(
fn insert_ref<Arg: ?Sized + Encode, S: HashedStorage<Self::Hasher>>(
key: &K,
val: &Arg,
storage: &mut S