@@ -257,7 +257,7 @@ fn rewards_should_work() {
257
257
) ;
258
258
assert_eq ! (
259
259
* mock:: staking_events( ) . last( ) . unwrap( ) ,
260
- Event :: EraPayout ( 0 , total_payout_0, maximum_payout - total_payout_0)
260
+ Event :: EraPaid ( 0 , total_payout_0, maximum_payout - total_payout_0)
261
261
) ;
262
262
mock:: make_all_reward_payment ( 0 ) ;
263
263
@@ -295,7 +295,7 @@ fn rewards_should_work() {
295
295
) ;
296
296
assert_eq ! (
297
297
* mock:: staking_events( ) . last( ) . unwrap( ) ,
298
- Event :: EraPayout ( 1 , total_payout_1, maximum_payout - total_payout_1)
298
+ Event :: EraPaid ( 1 , total_payout_1, maximum_payout - total_payout_1)
299
299
) ;
300
300
mock:: make_all_reward_payment ( 1 ) ;
301
301
@@ -3942,7 +3942,7 @@ mod election_data_provider {
3942
3942
run_to_block ( 20 ) ;
3943
3943
assert_eq ! ( Staking :: next_election_prediction( System :: block_number( ) ) , 45 ) ;
3944
3944
assert_eq ! ( staking_events( ) . len( ) , 1 ) ;
3945
- assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakingElection ) ;
3945
+ assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakersElected ) ;
3946
3946
3947
3947
for b in 21 ..45 {
3948
3948
run_to_block ( b) ;
@@ -3953,7 +3953,7 @@ mod election_data_provider {
3953
3953
run_to_block ( 45 ) ;
3954
3954
assert_eq ! ( Staking :: next_election_prediction( System :: block_number( ) ) , 70 ) ;
3955
3955
assert_eq ! ( staking_events( ) . len( ) , 3 ) ;
3956
- assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakingElection ) ;
3956
+ assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakersElected ) ;
3957
3957
3958
3958
Staking :: force_no_eras ( Origin :: root ( ) ) . unwrap ( ) ;
3959
3959
assert_eq ! ( Staking :: next_election_prediction( System :: block_number( ) ) , u64 :: MAX ) ;
@@ -3976,7 +3976,7 @@ mod election_data_provider {
3976
3976
run_to_block ( 55 ) ;
3977
3977
assert_eq ! ( Staking :: next_election_prediction( System :: block_number( ) ) , 55 + 25 ) ;
3978
3978
assert_eq ! ( staking_events( ) . len( ) , 6 ) ;
3979
- assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakingElection ) ;
3979
+ assert_eq ! ( * staking_events( ) . last( ) . unwrap( ) , Event :: StakersElected ) ;
3980
3980
// The new era has been planned, forcing is changed from `ForceNew` to `NotForcing`.
3981
3981
assert_eq ! ( ForceEra :: <Test >:: get( ) , Forcing :: NotForcing ) ;
3982
3982
} )
0 commit comments