From 67b61b48fa6887952926d6a3d0da1d691b2fa803 Mon Sep 17 00:00:00 2001 From: emostov <32168567+emostov@users.noreply.github.com> Date: Tue, 1 Mar 2022 16:16:32 -0800 Subject: [PATCH] staking: Expose `MaxUnlockingChunks` in metadata as a const --- frame/staking/src/pallet/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/frame/staking/src/pallet/mod.rs b/frame/staking/src/pallet/mod.rs index 9d3b438daebb4..eb8dab7ce6bb6 100644 --- a/frame/staking/src/pallet/mod.rs +++ b/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; /// Some parameters of the benchmarking.