Skip to content

Commit

Permalink
fix max freeze reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
PieWol committed Feb 25, 2024
1 parent 2712e10 commit ead606f
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cumulus/parachains/common/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

pub struct OneAuthor;
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/assigned_slots/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

impl parachains_configuration::Config for Test {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/auctions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

#[derive(Eq, PartialEq, Ord, PartialOrd, Clone, Copy, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/crowdloan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

#[derive(Copy, Clone, Eq, PartialEq, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/paras_registrar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

impl shared::Config for Test {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/purchase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/common/src/slots/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ mod tests {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
4 changes: 2 additions & 2 deletions polkadot/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl pallet_balances::Config for Runtime {
type FreezeIdentifier = RuntimeFreezeReason;
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down Expand Up @@ -1166,7 +1166,7 @@ impl pallet_balances::Config<NisCounterpartInstance> for Runtime {
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = RuntimeFreezeReason;
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ impl pallet_balances::Config for Runtime {
type AccountStore = frame_system::Pallet<Runtime>;
type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
type FreezeIdentifier = RuntimeFreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
}

parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/conviction-voting/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl pallet_balances::Config for Test {
type AccountStore = System;
type WeightInfo = ();
type FreezeIdentifier = FreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/executive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ mod tests {
type ReserveIdentifier = [u8; 8];
type WeightInfo = ();
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/nomination-pools/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl pallet_balances::Config for Runtime {
type AccountStore = System;
type WeightInfo = ();
type FreezeIdentifier = RuntimeFreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/nomination-pools/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl pallet_balances::Config for Runtime {
type AccountStore = System;
type WeightInfo = ();
type FreezeIdentifier = RuntimeFreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/nomination-pools/test-staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl pallet_balances::Config for Runtime {
type AccountStore = System;
type WeightInfo = ();
type FreezeIdentifier = RuntimeFreezeReason;
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = ();
type RuntimeFreezeReason = ();
}
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/preimage/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl pallet_balances::Config for Test {
type MaxReserves = ConstU32<50>;
type ReserveIdentifier = [u8; 8];
type FreezeIdentifier = ();
type MaxFreezes = ConstU32<1>;
type MaxFreezes = ConstU32<2>;
type RuntimeHoldReason = RuntimeHoldReason;
type RuntimeFreezeReason = ();
}
Expand Down

0 comments on commit ead606f

Please sign in to comment.