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 ecf7f52 commit 14a8758Copy full SHA for 14a8758
pallets/admin-utils/src/lib.rs
@@ -653,7 +653,7 @@ pub mod pallet {
653
netuid: u16,
654
difficulty: u64,
655
) -> DispatchResult {
656
- pallet_subtensor::Pallet::<T>::ensure_subnet_owner_or_root(origin, netuid)?;
+ ensure_root(origin)?;
657
ensure!(
658
pallet_subtensor::Pallet::<T>::if_subnet_exist(netuid),
659
Error::<T>::SubnetDoesNotExist
0 commit comments