Skip to content

Commit

Permalink
fix renaming pallet in staking migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Oct 14, 2023
1 parent b32efd5 commit 7afe0a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frame/staking/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub mod v12 {
pub mod v11 {
use super::*;
use frame_support::{
storage::migration::move_pallet,
storage::{unhashed::clear_prefix, migration::move_pallet},
traits::{GetStorageVersion, PalletInfoAccess},
};
#[cfg(feature = "try-runtime")]
Expand Down Expand Up @@ -209,6 +209,7 @@ pub mod v11 {
}

move_pallet(old_pallet_name.as_bytes(), new_pallet_name.as_bytes());
clear_prefix(&twox_128(old_pallet_name.as_bytes()), None, None);
<T as frame_system::Config>::BlockWeights::get().max_block
} else {
log!(warn, "v11::migrate should be removed.");
Expand Down

0 comments on commit 7afe0a6

Please sign in to comment.