diff --git a/pallets/dapp-staking-v3/src/test/mock.rs b/pallets/dapp-staking-v3/src/test/mock.rs index cbf67673ca..c193f3ddde 100644 --- a/pallets/dapp-staking-v3/src/test/mock.rs +++ b/pallets/dapp-staking-v3/src/test/mock.rs @@ -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::::get().period_type(); while ActiveProtocolState::::get().period_type() == period_type { run_for_blocks(1); diff --git a/pallets/dapp-staking-v3/src/test/tests.rs b/pallets/dapp-staking-v3/src/test/tests.rs index 0e027a6932..83c6ec676a 100644 --- a/pallets/dapp-staking-v3/src/test/tests.rs +++ b/pallets/dapp-staking-v3/src/test/tests.rs @@ -827,7 +827,7 @@ fn stake_in_final_era_fails() { // Force Build&Earn period ActiveProtocolState::::mutate(|state| { - state.period_type() = PeriodType::BuildAndEarn; + state.period_info.period_type = PeriodType::BuildAndEarn; state.period_info.ending_era = state.era + 1; });