Remove storage MaxValues limits (#11643)

* Remove limits

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Remove more

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2022-06-11 18:50:16 +01:00
committed by GitHub
parent dfda072af3
commit dd2314a118
3 changed files with 2 additions and 22 deletions
-8
View File
@@ -262,9 +262,6 @@ pub mod pallet {
Blake2_128Concat,
T::AccountId,
AssetAccountOf<T, I>,
OptionQuery,
GetDefault,
ConstU32<300_000>,
>;
#[pallet::storage]
@@ -279,9 +276,6 @@ pub mod pallet {
NMapKey<Blake2_128Concat, T::AccountId>, // delegate
),
Approval<T::Balance, DepositBalanceOf<T, I>>,
OptionQuery,
GetDefault,
ConstU32<300_000>,
>;
#[pallet::storage]
@@ -292,8 +286,6 @@ pub mod pallet {
T::AssetId,
AssetMetadata<DepositBalanceOf<T, I>, BoundedVec<u8, T::StringLimit>>,
ValueQuery,
GetDefault,
ConstU32<300_000>,
>;
#[pallet::genesis_config]
-3
View File
@@ -195,9 +195,6 @@ pub mod pallet {
Blake2_128Concat,
HashedProof,
PendingSwap<T>,
OptionQuery,
GetDefault,
ConstU32<300_000>,
>;
#[pallet::error]
+2 -11
View File
@@ -516,15 +516,8 @@ pub mod pallet {
/// `Balances` pallet, which uses a `StorageMap` to store balances data only.
/// NOTE: This is only used in the case that this pallet is used to store balances.
#[pallet::storage]
pub type Account<T: Config<I>, I: 'static = ()> = StorageMap<
_,
Blake2_128Concat,
T::AccountId,
AccountData<T::Balance>,
ValueQuery,
GetDefault,
ConstU32<300_000>,
>;
pub type Account<T: Config<I>, I: 'static = ()> =
StorageMap<_, Blake2_128Concat, T::AccountId, AccountData<T::Balance>, ValueQuery>;
/// Any liquidity locks on some account balances.
/// NOTE: Should only be accessed when setting, changing and freeing a lock.
@@ -536,8 +529,6 @@ pub mod pallet {
T::AccountId,
WeakBoundedVec<BalanceLock<T::Balance>, T::MaxLocks>,
ValueQuery,
GetDefault,
ConstU32<300_000>,
>;
/// Named reserves on some account balances.