Skip to content

Commit

Permalink
A0-3548: fix config values (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostekIV authored Nov 28, 2023
1 parent 1ac5347 commit f0fbba5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,15 @@ impl pallet_authorship::Config for Runtime {
parameter_types! {
pub const ExistentialDeposit: u128 = 500 * PICO_AZERO;
pub const MaxLocks: u32 = 50;
// We have only 2 reasons for holds - CodeUploadDeposit and StorageDeposit.
pub const MaxHolds: u32 = 2;
pub const MaxFreezes: u32 = 0;
pub const MaxReserves: u32 = 50;
}

impl pallet_balances::Config for Runtime {
type MaxLocks = MaxLocks;
type MaxReserves = ();
type MaxReserves = MaxReserves;
type ReserveIdentifier = [u8; 8];
/// The type for recording an account's balance.
type Balance = Balance;
Expand All @@ -232,8 +236,8 @@ impl pallet_balances::Config for Runtime {
type AccountStore = System;
type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
type FreezeIdentifier = ();
type MaxHolds = ConstU32<0>;
type MaxFreezes = ConstU32<0>;
type MaxHolds = MaxHolds;
type MaxFreezes = MaxFreezes;
type RuntimeHoldReason = RuntimeHoldReason;
}

Expand Down

0 comments on commit f0fbba5

Please sign in to comment.