Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Rename extra_constant (#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Jul 6, 2022
1 parent c892b41 commit c1da6b7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions runtime/common/src/auctions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,13 @@ 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 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 {

This comment has been minimized.

Copy link
@rmlearney-digicatapult

rmlearney-digicatapult Jul 7, 2022

Typo: pease_periods_per_slot() -> lease_periods_per_slot()
@AurevoirXavier

SlotRange::LEASE_PERIODS_PER_SLOT as u32
}
}
Expand Down

0 comments on commit c1da6b7

Please sign in to comment.