Function pallet_elections_phragmen::migrations::v3::apply
source · pub fn apply<V: V2ToV3, T: Config>(
old_voter_bond: V::Balance,
old_candidacy_bond: V::Balance
) -> Weight
Expand description
Apply all of the migrations from 2 to 3.
Warning
This code will ONLY check that the storage version is less than or equal to 2_0_0. Further check might be needed at the user runtime.
Be aware that this migration is intended to be used only for the mentioned versions. Use with care and run at your own risk.