Contracts Rollback StorageMap hashing migration (#14661)

* Contracts Rollback StorageMap hashing migration

* misc v13
This commit is contained in:
PG Herveou authored and GitHub committed 2023-07-28 10:08:26 +00:00
1 parent c533005df9
commit d2411a2639
2 files changed
+3 -4

No files matched your search

@@ -16,7 +16,6 @@
// limitations under the License.
//! Add `delegate_dependencies` to `ContractInfo`.
//! Use `Identity` instead of `Twox64Concat` for hashing keys of the `ContractInfoOf` storage map
//! See <https://github.com/paritytech/substrate/pull/14079>.
use crate::{
@@ -74,7 +73,7 @@ pub fn store_old_contract_info<T: Config>(account: T::AccountId, info: crate::Co
#[storage_alias]
pub type ContractInfoOf<T: Config> =
StorageMap<Pallet<T>, Identity, <T as frame_system::Config>::AccountId, ContractInfo<T>>;
StorageMap<Pallet<T>, Twox64Concat, <T as frame_system::Config>::AccountId, ContractInfo<T>>;
#[derive(Encode, Decode, CloneNoBound, PartialEq, Eq, RuntimeDebug, TypeInfo, MaxEncodedLen)]
#[scale_info(skip_type_params(T))]