diff --git a/runtime/common/src/auctions.rs b/runtime/common/src/auctions.rs index 114585e8aa3f..0eaabe2e6d6b 100644 --- a/runtime/common/src/auctions.rs +++ b/runtime/common/src/auctions.rs @@ -203,15 +203,13 @@ pub mod pallet { #[pallet::extra_constants] impl Pallet { - //TODO: rename to snake case after https://github.com/paritytech/substrate/issues/8826 fixed. - #[allow(non_snake_case)] - fn SlotRangeCount() -> u32 { + #[pallet::constant_name(SlotRangeCount)] + fn slot_range_count() -> u32 { SlotRange::SLOT_RANGE_COUNT as u32 } - //TODO: rename to snake case after https://github.com/paritytech/substrate/issues/8826 fixed. - #[allow(non_snake_case)] - fn LeasePeriodsPerSlot() -> u32 { + #[pallet::constant_name(LeasePeriodsPerSlot)] + fn pease_periods_per_slot() -> u32 { SlotRange::LEASE_PERIODS_PER_SLOT as u32 } }