Skip to content

Commit

Permalink
Fix ensure_root call in sudo_set_subnet_owner_cut
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayden Brewer committed Nov 9, 2023
1 parent 4252105 commit 2ba211a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ impl<T: Config> Pallet<T> {
netuid: u16,
max_allowed_validators: u16,
) -> DispatchResult {
Self::ensure_root(origin)?;
ensure_root(origin)?;
ensure!(
Self::if_subnet_exist(netuid),
Error::<T>::NetworkDoesNotExist
Expand Down

0 comments on commit 2ba211a

Please sign in to comment.