diff --git a/pallets/network/src/lib.rs b/pallets/network/src/lib.rs index 090d702..81ebc51 100644 --- a/pallets/network/src/lib.rs +++ b/pallets/network/src/lib.rs @@ -2716,11 +2716,6 @@ pub mod pallet { Err(()) => return Err(Error::::SubnetNotExist.into()), }; - // ensure!( - // SubnetNodesData::::contains_key(subnet_id, account_id.clone()), - // Error::::SubnetNotExist - // ); - // if subnet.activated == 0 { // // --- Subnet nodes can only activate if within registration period or if it's activated // // --- Ensure the subnet outside of the enactment period or still registering diff --git a/pallets/network/src/tests.rs b/pallets/network/src/tests.rs index 1334627..3b1aaab 100644 --- a/pallets/network/src/tests.rs +++ b/pallets/network/src/tests.rs @@ -2465,7 +2465,7 @@ fn test_add_subnet_node_remove_readd_must_unstake_error() { None, None, ), - Error::::InvalidSubnetRegistrationCooldown + Error::::MustUnstakeToRegister ); }); }