Skip to content

Commit 7eaacf9

Browse files
committed
make min burn only callable by root
1 parent f712ba0 commit 7eaacf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ pub mod pallet {
554554
}
555555

556556
/// The extrinsic sets the minimum burn for a subnet.
557-
/// It is only callable by the root account or subnet owner.
557+
/// It is only callable by the root account.
558558
/// The extrinsic will call the Subtensor pallet to set the minimum burn.
559559
#[pallet::call_index(22)]
560560
#[pallet::weight(<T as Config>::WeightInfo::sudo_set_min_burn())]
@@ -563,7 +563,7 @@ pub mod pallet {
563563
netuid: u16,
564564
min_burn: u64,
565565
) -> DispatchResult {
566-
pallet_subtensor::Pallet::<T>::ensure_subnet_owner_or_root(origin, netuid)?;
566+
ensure_root(origin)?;
567567

568568
ensure!(
569569
pallet_subtensor::Pallet::<T>::if_subnet_exist(netuid),

0 commit comments

Comments
 (0)