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 619ef06 commit a69315bCopy full SHA for a69315b
pallets/subtensor/src/staking/stake_utils.rs
@@ -965,10 +965,10 @@ impl<T: Config> Pallet<T> {
965
allow_partial: bool,
966
) -> Result<(), Error<T>> {
967
// Ensure that the subnet exists.
968
- // ensure!(Self::if_subnet_exist(netuid), Error::<T>::SubnetNotExists);
+ ensure!(Self::if_subnet_exist(netuid), Error::<T>::SubnetNotExists);
969
970
// Ensure that the subnet is enabled.
971
- Self::ensure_subtoken_enabled(netuid)?;
+ // Self::ensure_subtoken_enabled(netuid)?;
972
973
// Ensure that the stake amount to be removed is above the minimum in tao equivalent.
974
if let Some(tao_equivalent) = Self::sim_swap_alpha_for_tao(netuid, alpha_unstaked) {
0 commit comments