Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Oct 9, 2023
1 parent e462c8e commit b079603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/src/test/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub(crate) fn advance_to_next_period() {
}

/// Advance blocks until next period type has been reached.
pub(crate) fn advance_to_next_period_type() {
pub(crate) fn _advance_to_next_period_type() {
let period_type = ActiveProtocolState::<Test>::get().period_type();
while ActiveProtocolState::<Test>::get().period_type() == period_type {
run_for_blocks(1);
Expand Down
2 changes: 1 addition & 1 deletion pallets/dapp-staking-v3/src/test/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ fn stake_in_final_era_fails() {

// Force Build&Earn period
ActiveProtocolState::<Test>::mutate(|state| {
state.period_type() = PeriodType::BuildAndEarn;
state.period_info.period_type = PeriodType::BuildAndEarn;
state.period_info.ending_era = state.era + 1;
});

Expand Down

0 comments on commit b079603

Please sign in to comment.