Skip to content

Commit

Permalink
remove migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ipapandinas committed Mar 4, 2025
1 parent a0a635e commit 70801af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
36 changes: 0 additions & 36 deletions pallets/dapp-staking/src/test/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4238,42 +4238,6 @@ fn set_static_tier_params_works() {
})
}

#[test]
fn active_update_bonus_status() {
ExtBuilder::default()
.with_max_bonus_safe_moves(2)
.build_and_execute(|| {
let account_1 = 1;
let contract_1 = MockSmartContract::wasm(1 as AccountId);

crate::migration::v8::StakerInfo::<Test>::set(
&account_1,
&contract_1,
Some(crate::migration::v8::SingularStakingInfo {
previous_staked: Default::default(),
staked: Default::default(),
loyal_staker: true,
}),
);

assert_ok!(crate::Pallet::<Test>::do_update(
crate::Pallet::<Test>::max_call_weight()
));

let expected_bonus_status = *BonusStatusWrapperFor::<Test>::default();
let expected_staker_info = SingularStakingInfo {
previous_staked: Default::default(),
staked: Default::default(),
bonus_status: expected_bonus_status,
};

assert_eq!(
StakerInfo::<Test>::get(&account_1, &contract_1),
Some(expected_staker_info)
);
})
}

// Tests a previous bug where previous_stake was storing future stake amounts (amounts that should be eligible in the next era)
#[test]
fn previous_stake_unchanged_for_future_era_staking() {
Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ pub type Executive = frame_executive::Executive<
pub type Migrations = (Unreleased, Permanent);

/// Unreleased migrations. Add new ones here:
pub type Unreleased = (); // TODO: clear old storage for ActiveBonusUpdateState (via kill or take)
pub type Unreleased = ();

/// Migrations/checks that do not need to be versioned and can run on every upgrade.
pub type Permanent = (pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,);
Expand Down

0 comments on commit 70801af

Please sign in to comment.