From c5eb2e70dd5dc81ea7a5a5cebba35753a13f5363 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Wed, 2 Aug 2023 19:00:42 +0200
Subject: [PATCH] fix(#123): use Blake2_128Concat instead of Blake2_128

---
 pallets/identity/src/lib.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pallets/identity/src/lib.rs b/pallets/identity/src/lib.rs
index 06514db71..7ead24e14 100644
--- a/pallets/identity/src/lib.rs
+++ b/pallets/identity/src/lib.rs
@@ -188,12 +188,13 @@ pub mod pallet {
     #[pallet::storage]
     #[pallet::getter(fn identity_index_of)]
     pub type IdentityIndexOf<T: Config> =
-        StorageMap<_, Blake2_128, T::AccountId, T::IdtyIndex, OptionQuery>;
+        StorageMap<_, Blake2_128Concat, T::AccountId, T::IdtyIndex, OptionQuery>;
 
     /// maps identity name to null type (simply a set)
     #[pallet::storage]
     #[pallet::getter(fn identity_by_did)]
-    pub type IdentitiesNames<T: Config> = StorageMap<_, Blake2_128, IdtyName, (), OptionQuery>;
+    pub type IdentitiesNames<T: Config> =
+        StorageMap<_, Blake2_128Concat, IdtyName, (), OptionQuery>;
 
     /// counter of the identity index to give to the next identity
     #[pallet::storage]
-- 
GitLab