diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 6d61baadf3..8eb5a71177 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -330,9 +330,9 @@ pub mod pallet { /// Enum for the per-coldkey root claim setting. pub enum RootClaimTypeEnum { /// Swap any alpha emission for TAO. - #[default] Swap, /// Keep all alpha emission. + #[default] Keep, /// Keep all alpha emission for specified subnets. KeepSubnets { diff --git a/pallets/subtensor/src/tests/claim_root.rs b/pallets/subtensor/src/tests/claim_root.rs index b910fa1e83..9cb94b4d1a 100644 --- a/pallets/subtensor/src/tests/claim_root.rs +++ b/pallets/subtensor/src/tests/claim_root.rs @@ -1816,3 +1816,12 @@ fn test_claim_root_keep_subnets_swap_claim_type() { ); }); } + +#[test] +fn test_claim_root_default_mode_keep() { + new_test_ext(1).execute_with(|| { + let coldkey = U256::from(1003); + + assert_eq!(RootClaimType::::get(coldkey), RootClaimTypeEnum::Keep); + }); +}