Skip to content

Commit 6052c2b

Browse files
committed
chore: clpy
1 parent 8604e9b commit 6052c2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pallets/subtensor/src/tests/swap_coldkey.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2645,11 +2645,11 @@ fn test_swap_auto_stake_destination_coldkeys() {
26452645
assert!(!new_coldkeys.contains(&old_coldkey));
26462646
assert_eq!(
26472647
AutoStakeDestination::<Test>::try_get(old_coldkey, netuid),
2648-
None
2648+
Err(())
26492649
);
26502650
assert_eq!(
26512651
AutoStakeDestination::<Test>::try_get(new_coldkey, netuid),
2652-
Some(hotkey)
2652+
Ok(hotkey)
26532653
);
26542654
});
26552655
}

pallets/subtensor/src/tests/swap_hotkey.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ fn test_swap_auto_stake_destination_coldkeys() {
14971497
assert!(AutoStakeDestinationColdkeys::<Test>::get(old_hotkey, netuid).is_empty());
14981498
assert_eq!(
14991499
AutoStakeDestination::<Test>::get(coldkey, netuid),
1500-
new_hotkey
1500+
Some(new_hotkey)
15011501
);
15021502
});
15031503
}

0 commit comments

Comments
 (0)