add note on usage of twox hash (#13089)

This commit is contained in:
Ankan
2023-01-09 08:33:29 +01:00
committed by GitHub
parent d72f6176bc
commit 8f7971dca7
3 changed files with 12 additions and 0 deletions
@@ -1277,6 +1277,8 @@ pub mod pallet {
pub type MaxPoolMembersPerPool<T: Config> = StorageValue<_, u32, OptionQuery>;
/// Active members.
///
/// TWOX-NOTE: SAFE since `AccountId` is a secure hash.
#[pallet::storage]
pub type PoolMembers<T: Config> =
CountedStorageMap<_, Twox64Concat, T::AccountId, PoolMember<T>>;