mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Clean up extra_constant renaming. (#10935)
Co-authored-by: Xiankun Cheng <xiankuncheng@Xiankuns-MacBook-Pro-2.local>
This commit is contained in:
@@ -297,10 +297,9 @@ 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)]
|
||||
#[pallet::constant_name(WeightToFee)]
|
||||
/// The polynomial that is applied in order to derive fee from weight.
|
||||
fn WeightToFee() -> Vec<WeightToFeeCoefficient<BalanceOf<T>>> {
|
||||
fn weight_to_fee_polynomial() -> Vec<WeightToFeeCoefficient<BalanceOf<T>>> {
|
||||
T::WeightToFee::polynomial().to_vec()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user