Skip to content

Commit 7173640

Browse files
Revert root claim default type back to Swap
1 parent d9f43e1 commit 7173640

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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]
333334
Swap,
334335
/// 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,6 +1822,6 @@ fn test_claim_root_default_mode_keep() {
18221822
new_test_ext(1).execute_with(|| {
18231823
let coldkey = U256::from(1003);
18241824

1825-
assert_eq!(RootClaimType::<Test>::get(coldkey), RootClaimTypeEnum::Keep);
1825+
assert_eq!(RootClaimType::<Test>::get(coldkey), RootClaimTypeEnum::Swap);
18261826
});
18271827
}

0 commit comments

Comments
 (0)