Skip to content

Commit

Permalink
Improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jan 10, 2025
1 parent 2359bcc commit 4bc3223
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions substrate/frame/staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,8 @@ impl ExtBuilder {

if self.initialize_first_session {
ext.execute_with(|| {
System::run_to_block_with::<AllPalletsWithSystem>(
1,
frame_system::RunToBlockHooks::default().after_initialize(|_| {
Timestamp::set_timestamp(INIT_TIMESTAMP);
}),
);
System::run_to_block::<AllPalletsWithSystem>(1);
Timestamp::set_timestamp(INIT_TIMESTAMP);
});
}

Expand Down

0 comments on commit 4bc3223

Please sign in to comment.