Skip to content
Merged
2 changes: 1 addition & 1 deletion pallets/admin-utils/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ fn test_trim_to_max_allowed_uids() {
NetUid::from(42),
new_max_n
),
pallet_subtensor::Error::<Test>::MechanismDoesNotExist
pallet_subtensor::Error::<Test>::SubnetNotExists
);

// New max n less than lower bound
Expand Down
2 changes: 1 addition & 1 deletion pallets/subtensor/src/coinbase/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl<T: Config> Pallet<T> {
// 1. --- The network exists?
ensure!(
Self::if_subnet_exist(netuid) && netuid != NetUid::ROOT,
Error::<T>::MechanismDoesNotExist
Error::<T>::SubnetNotExists
);

// 2. --- Perform the cleanup before removing the network.
Expand Down
Loading
Loading