We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b8aab commit c4a1e6eCopy full SHA for c4a1e6e
pallets/subtensor/tests/swap.rs
@@ -1085,7 +1085,7 @@ fn test_do_swap_coldkey_success() {
1085
assert_eq!(Stake::<Test>::get(hotkey, old_coldkey), stake_amount);
1086
1087
assert_eq!(OwnedHotkeys::<Test>::get(old_coldkey), vec![hotkey]);
1088
- assert!(!OwnedHotkeys::<Test>::contains_key(new_coldkey));
+ assert!(!OwnedHotkeys::<Test>::get(new_coldkey).contains(hotkey));
1089
1090
// Get coldkey free balance before swap
1091
let balance = SubtensorModule::get_coldkey_balance(&old_coldkey);
0 commit comments