Skip to content

Commit 619ef06

Browse files
committed
remove subnet exists check on validate_remove_stake
1 parent f2d6939 commit 619ef06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/staking/stake_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ 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.
971971
Self::ensure_subtoken_enabled(netuid)?;

0 commit comments

Comments
 (0)