mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com>
This commit is contained in:
@@ -785,19 +785,9 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
(RemoveCollectiveFlip, UniquesV1Migration),
|
UniquesV1Migration,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct RemoveCollectiveFlip;
|
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
|
||||||
fn on_runtime_upgrade() -> Weight {
|
|
||||||
use frame_support::storage::migration;
|
|
||||||
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
|
|
||||||
migration::remove_storage_prefix(b"RandomnessCollectiveFlip", b"RandomMaterial", b"");
|
|
||||||
<Runtime as frame_system::Config>::DbWeight::get().writes(1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub struct UniquesV1Migration;
|
pub struct UniquesV1Migration;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
||||||
fn on_runtime_upgrade() -> Weight {
|
fn on_runtime_upgrade() -> Weight {
|
||||||
|
|||||||
@@ -769,16 +769,13 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
RemoveCollectiveFlip,
|
UniquesV1Migration,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct RemoveCollectiveFlip;
|
pub struct UniquesV1Migration;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
||||||
fn on_runtime_upgrade() -> Weight {
|
fn on_runtime_upgrade() -> Weight {
|
||||||
use frame_support::storage::migration;
|
pallet_uniques::migration::migrate_to_v1::<Runtime, _, Uniques>()
|
||||||
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
|
|
||||||
migration::remove_storage_prefix(b"RandomnessCollectiveFlip", b"RandomMaterial", b"");
|
|
||||||
<Runtime as frame_system::Config>::DbWeight::get().writes(1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user