Clean up extra_constant renaming. (#10935)

Co-authored-by: Xiankun Cheng <xiankuncheng@Xiankuns-MacBook-Pro-2.local>
This commit is contained in:
Xiankun Cheng
2022-03-01 22:32:22 +13:00
committed by GitHub
parent e3377ddc4e
commit 4e2f2ef278
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -171,9 +171,8 @@ pub mod pallet {
#[pallet::extra_constants]
impl<T: Config> Pallet<T> {
// TODO: rename to snake case after https://github.com/paritytech/substrate/issues/8826 fixed.
#[allow(non_snake_case)]
fn MaxVestingSchedules() -> u32 {
#[pallet::constant_name(MaxVestingSchedules)]
fn max_vesting_schedules() -> u32 {
T::MAX_VESTING_SCHEDULES
}
}