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
+2
View File
@@ -147,6 +147,8 @@ pub mod pallet {
/// The map of all accounts wishing to be unstaked.
///
/// Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
///
/// TWOX-NOTE: SAFE since `AccountId` is a secure hash.
#[pallet::storage]
pub type Queue<T: Config> = CountedStorageMap<_, Twox64Concat, T::AccountId, BalanceOf<T>>;