File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
pallets/subtensor/src/tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1151,7 +1151,8 @@ fn test_swap_multiple_subnets() {
11511151 new_test_ext ( 1 ) . execute_with ( || {
11521152 let old_hotkey = U256 :: from ( 1 ) ;
11531153 let new_hotkey = U256 :: from ( 2 ) ;
1154- let coldkey = U256 :: from ( 3 ) ;
1154+ let new_hotkey_2 = U256 :: from ( 3 ) ;
1155+ let coldkey = U256 :: from ( 4 ) ;
11551156 let netuid1 = add_dynamic_network ( & old_hotkey, & coldkey) ;
11561157 let netuid2 = add_dynamic_network ( & old_hotkey, & coldkey) ;
11571158
@@ -1177,13 +1178,13 @@ fn test_swap_multiple_subnets() {
11771178 assert_ok ! ( SubtensorModule :: do_swap_hotkey(
11781179 RuntimeOrigin :: signed( coldkey) ,
11791180 & old_hotkey,
1180- & new_hotkey ,
1181+ & new_hotkey_2 ,
11811182 Some ( netuid2)
11821183 ) , ) ;
11831184
11841185 // Verify the swap for both subnets
11851186 assert_eq ! ( ChildKeys :: <Test >:: get( new_hotkey, netuid1) , children1) ;
1186- assert_eq ! ( ChildKeys :: <Test >:: get( new_hotkey , netuid2) , children2) ;
1187+ assert_eq ! ( ChildKeys :: <Test >:: get( new_hotkey_2 , netuid2) , children2) ;
11871188 assert ! ( ChildKeys :: <Test >:: get( old_hotkey, netuid1) . is_empty( ) ) ;
11881189 assert ! ( ChildKeys :: <Test >:: get( old_hotkey, netuid2) . is_empty( ) ) ;
11891190 } ) ;
You can’t perform that action at this time.
0 commit comments