Remove default hasher (#4739)

* remove default hasher from decl_storage!

* fix decl_storage declarations
This commit is contained in:
thiolliere
2020-01-27 18:23:10 +01:00
committed by Gavin Wood
parent 38a01f3c65
commit 76acc96f3a
35 changed files with 193 additions and 141 deletions
+4 -2
View File
@@ -242,7 +242,8 @@ decl_storage! {
trait Store for Module<T: Trait> as Recovery {
/// The set of recoverable accounts and their recovery configuration.
pub Recoverable get(fn recovery_config):
map T::AccountId => Option<RecoveryConfig<T::BlockNumber, BalanceOf<T>, T::AccountId>>;
map hasher(blake2_256) T::AccountId
=> Option<RecoveryConfig<T::BlockNumber, BalanceOf<T>, T::AccountId>>;
/// Active recovery attempts.
///
/// First account is the account to be recovered, and the second account
@@ -253,7 +254,8 @@ decl_storage! {
/// The final list of recovered accounts.
///
/// Map from the recovered account to the user who can access it.
pub Recovered get(fn recovered_account): map T::AccountId => Option<T::AccountId>;
pub Recovered get(fn recovered_account):
map hasher(blake2_256) T::AccountId => Option<T::AccountId>;
}
}