Skip to content

Commit c4a1e6e

Browse files
Update pallets/subtensor/tests/swap.rs
Co-authored-by: Cameron Fairchild <[email protected]>
1 parent e6b8aab commit c4a1e6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/tests/swap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ fn test_do_swap_coldkey_success() {
10851085
assert_eq!(Stake::<Test>::get(hotkey, old_coldkey), stake_amount);
10861086

10871087
assert_eq!(OwnedHotkeys::<Test>::get(old_coldkey), vec![hotkey]);
1088-
assert!(!OwnedHotkeys::<Test>::contains_key(new_coldkey));
1088+
assert!(!OwnedHotkeys::<Test>::get(new_coldkey).contains(hotkey));
10891089

10901090
// Get coldkey free balance before swap
10911091
let balance = SubtensorModule::get_coldkey_balance(&old_coldkey);

0 commit comments

Comments
 (0)