File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1172,7 +1172,10 @@ fn test_swap_stake_for_coldkey() {
11721172 assert_eq ! ( Stake :: <Test >:: get( hotkey2, new_coldkey) , stake_amount2) ;
11731173 assert ! ( !Stake :: <Test >:: contains_key( hotkey1, old_coldkey) ) ;
11741174 assert ! ( !Stake :: <Test >:: contains_key( hotkey2, old_coldkey) ) ;
1175-
1175+ assert_eq ! ( TotalHotkeyStake :: <Test >:: get( hotkey1) , stake_amount1) ;
1176+ assert_eq ! ( TotalHotkeyStake :: <Test >:: get( hotkey2) , stake_amount2) ;
1177+ assert_eq ! ( TotalStake :: <Test >:: get( ) , stake_amount1 + stake_amount2) ;
1178+ assert_eq ! ( TotalIssuance :: <Test >:: get( ) , stake_amount1 + stake_amount2) ;
11761179 // Verify weight update
11771180 let expected_weight = <Test as frame_system:: Config >:: DbWeight :: get ( ) . reads_writes ( 3 , 4 ) ;
11781181 assert_eq ! ( weight, expected_weight) ;
You can’t perform that action at this time.
0 commit comments