Skip to content

Commit a69315b

Browse files
committed
whoops, wrong line
1 parent 619ef06 commit a69315b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/staking/stake_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,10 +965,10 @@ impl<T: Config> Pallet<T> {
965965
allow_partial: bool,
966966
) -> Result<(), Error<T>> {
967967
// Ensure that the subnet exists.
968-
// ensure!(Self::if_subnet_exist(netuid), Error::<T>::SubnetNotExists);
968+
ensure!(Self::if_subnet_exist(netuid), Error::<T>::SubnetNotExists);
969969

970970
// Ensure that the subnet is enabled.
971-
Self::ensure_subtoken_enabled(netuid)?;
971+
// Self::ensure_subtoken_enabled(netuid)?;
972972

973973
// Ensure that the stake amount to be removed is above the minimum in tao equivalent.
974974
if let Some(tao_equivalent) = Self::sim_swap_alpha_for_tao(netuid, alpha_unstaked) {

0 commit comments

Comments
 (0)