Skip to content

Commit 2a82482

Browse files
Change root claim default type.
1 parent c28baff commit 2a82482

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ pub mod pallet {
330330
/// Enum for the per-coldkey root claim setting.
331331
pub enum RootClaimTypeEnum {
332332
/// Swap any alpha emission for TAO.
333-
#[default]
334333
Swap,
335334
/// Keep all alpha emission.
335+
#[default]
336336
Keep,
337337
/// Keep all alpha emission for specified subnets.
338338
KeepSubnets {

pallets/subtensor/src/tests/claim_root.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,3 +1816,12 @@ fn test_claim_root_keep_subnets_swap_claim_type() {
18161816
);
18171817
});
18181818
}
1819+
1820+
#[test]
1821+
fn test_claim_root_default_mode_keep() {
1822+
new_test_ext(1).execute_with(|| {
1823+
let coldkey = U256::from(1003);
1824+
1825+
assert_eq!(RootClaimType::<Test>::get(coldkey), RootClaimTypeEnum::Keep);
1826+
});
1827+
}

0 commit comments

Comments
 (0)