Skip to content

Commit 14a8758

Browse files
committed
make set diff only root
1 parent ecf7f52 commit 14a8758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ pub mod pallet {
653653
netuid: u16,
654654
difficulty: u64,
655655
) -> DispatchResult {
656-
pallet_subtensor::Pallet::<T>::ensure_subnet_owner_or_root(origin, netuid)?;
656+
ensure_root(origin)?;
657657
ensure!(
658658
pallet_subtensor::Pallet::<T>::if_subnet_exist(netuid),
659659
Error::<T>::SubnetDoesNotExist

0 commit comments

Comments
 (0)