Commit 01c22a2 1 parent 3c2c7a2 commit 01c22a2 Copy full SHA for 01c22a2
File tree 2 files changed +5
-2
lines changed
pallets/dapp-staking-v3/src
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,8 @@ mod benchmarks {
307
307
let mut counter = 1u32 ;
308
308
Ledger :: < T > :: mutate ( & staker, |ledger| {
309
309
ledger. unlocking . iter_mut ( ) . for_each ( |unlocking| {
310
- unlocking. unlock_block = ( System :: < T > :: block_number ( ) + counter. into ( ) ) . saturated_into ( ) ;
310
+ unlocking. unlock_block =
311
+ ( System :: < T > :: block_number ( ) + counter. into ( ) ) . saturated_into ( ) ;
311
312
} ) ;
312
313
counter += 1 ;
313
314
} ) ;
Original file line number Diff line number Diff line change 46
46
let period_number = 1 ;
47
47
let protocol_state = ProtocolState {
48
48
era : init_era,
49
- next_era_start : now. saturating_add ( voting_period_length. into ( ) ) . saturated_into ( ) ,
49
+ next_era_start : now
50
+ . saturating_add ( voting_period_length. into ( ) )
51
+ . saturated_into ( ) ,
50
52
period_info : PeriodInfo {
51
53
number : period_number,
52
54
subperiod : Subperiod :: Voting ,
You can’t perform that action at this time.
0 commit comments