From 5a0b12bb5dfaa6c57fd4a118ff99541d7f63165c Mon Sep 17 00:00:00 2001 From: Zeke Mostov <z.mostov@gmail.com> Date: Tue, 1 Mar 2022 21:49:23 -0800 Subject: [PATCH] staking: Expose `MaxUnlockingChunks` in metadata as a const (#10958) --- substrate/frame/staking/src/pallet/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/substrate/frame/staking/src/pallet/mod.rs b/substrate/frame/staking/src/pallet/mod.rs index 9d3b438daeb..eb8dab7ce6b 100644 --- a/substrate/frame/staking/src/pallet/mod.rs +++ b/substrate/frame/staking/src/pallet/mod.rs @@ -158,6 +158,7 @@ pub mod pallet { /// The maximum number of `unlocking` chunks a [`StakingLedger`] can have. Effectively /// determines how many unique eras a staker may be unbonding in. + #[pallet::constant] type MaxUnlockingChunks: Get<u32>; /// Some parameters of the benchmarking. -- GitLab