We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f712ba0 commit 7eaacf9Copy full SHA for 7eaacf9
pallets/admin-utils/src/lib.rs
@@ -554,7 +554,7 @@ pub mod pallet {
554
}
555
556
/// The extrinsic sets the minimum burn for a subnet.
557
- /// It is only callable by the root account or subnet owner.
+ /// It is only callable by the root account.
558
/// The extrinsic will call the Subtensor pallet to set the minimum burn.
559
#[pallet::call_index(22)]
560
#[pallet::weight(<T as Config>::WeightInfo::sudo_set_min_burn())]
@@ -563,7 +563,7 @@ pub mod pallet {
563
netuid: u16,
564
min_burn: u64,
565
) -> DispatchResult {
566
- pallet_subtensor::Pallet::<T>::ensure_subnet_owner_or_root(origin, netuid)?;
+ ensure_root(origin)?;
567
568
ensure!(
569
pallet_subtensor::Pallet::<T>::if_subnet_exist(netuid),
0 commit comments