diff --git a/pallets/admin-utils/src/lib.rs b/pallets/admin-utils/src/lib.rs index d5ef7cb204..654f7207b8 100644 --- a/pallets/admin-utils/src/lib.rs +++ b/pallets/admin-utils/src/lib.rs @@ -2107,13 +2107,9 @@ pub mod pallet { /// Sets the announcement delay for coldkey swap. #[pallet::call_index(86)] - #[pallet::weight(( - Weight::from_parts(5_000_000, 0) - .saturating_add(T::DbWeight::get().reads(0_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(5_000_000, 0) + .saturating_add(::DbWeight::get().reads(0_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_coldkey_swap_announcement_delay( origin: OriginFor, duration: BlockNumberFor, @@ -2126,13 +2122,9 @@ pub mod pallet { /// Sets the coldkey swap reannouncement delay. #[pallet::call_index(87)] - #[pallet::weight(( - Weight::from_parts(5_000_000, 0) - .saturating_add(T::DbWeight::get().reads(0_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(5_000_000, 0) + .saturating_add(::DbWeight::get().reads(0_u64)) + .saturating_add(::DbWeight::get().writes(1_u64)))] pub fn sudo_set_coldkey_swap_reannouncement_delay( origin: OriginFor, duration: BlockNumberFor, diff --git a/pallets/shield/src/lib.rs b/pallets/shield/src/lib.rs index 1ee1d6c4d6..e0fc250058 100644 --- a/pallets/shield/src/lib.rs +++ b/pallets/shield/src/lib.rs @@ -244,13 +244,9 @@ pub mod pallet { /// Announce the ML‑KEM public key that will become `CurrentKey` in /// the following block. #[pallet::call_index(0)] - #[pallet::weight(( - Weight::from_parts(20_999_999_999, 0) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(20_999_999_999, 0) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)))] #[allow(clippy::useless_conversion)] pub fn announce_next_key( origin: OriginFor, diff --git a/pallets/subtensor/src/macros/dispatches.rs b/pallets/subtensor/src/macros/dispatches.rs index df1e00dd9a..6330e07d1c 100644 --- a/pallets/subtensor/src/macros/dispatches.rs +++ b/pallets/subtensor/src/macros/dispatches.rs @@ -2485,13 +2485,9 @@ mod dispatches { /// * `SubnetNotExist` - If the subnet does not exist. /// * `NotSubnetOwner` - If the caller is not the subnet owner or root. #[pallet::call_index(129)] - #[pallet::weight(( - Weight::from_parts(10_000, 0) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(2)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(10_000, 0) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)))] pub fn enable_voting_power_tracking( origin: OriginFor, netuid: NetUid, @@ -2515,13 +2511,9 @@ mod dispatches { /// * `NotSubnetOwner` - If the caller is not the subnet owner or root. /// * `VotingPowerTrackingNotEnabled` - If voting power tracking is not enabled. #[pallet::call_index(130)] - #[pallet::weight(( - Weight::from_parts(10_000, 0) - .saturating_add(T::DbWeight::get().reads(2)) - .saturating_add(T::DbWeight::get().writes(1)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(10_000, 0) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)))] pub fn disable_voting_power_tracking( origin: OriginFor, netuid: NetUid, @@ -2546,13 +2538,9 @@ mod dispatches { /// * `SubnetNotExist` - If the subnet does not exist. /// * `InvalidVotingPowerEmaAlpha` - If alpha is greater than 10^18 (1.0). #[pallet::call_index(131)] - #[pallet::weight(( - Weight::from_parts(6_000, 0) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)), - DispatchClass::Operational, - Pays::Yes - ))] + #[pallet::weight(Weight::from_parts(6_000, 0) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)))] pub fn sudo_set_voting_power_ema_alpha( origin: OriginFor, netuid: NetUid, diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 7359556be6..460a84e049 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -243,7 +243,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 379, + spec_version: 380, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,