mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 18:55:48 +00:00
remove old migrations (#3609)
This commit is contained in:
@@ -1485,7 +1485,7 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
(RemoveCollectiveFlip, MigratePalletVersionToStorageVersion),
|
MigratePalletVersionToStorageVersion,
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in the transactions.
|
/// The payload being signed in the transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
@@ -1501,16 +1501,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
sp_api::impl_runtime_apis! {
|
sp_api::impl_runtime_apis! {
|
||||||
impl sp_api::Core<Block> for Runtime {
|
impl sp_api::Core<Block> for Runtime {
|
||||||
|
|||||||
@@ -1124,7 +1124,7 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
(RemoveCollectiveFlip, MigratePalletVersionToStorageVersion),
|
MigratePalletVersionToStorageVersion,
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in transactions.
|
/// The payload being signed in transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
@@ -1140,16 +1140,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
sp_api::impl_runtime_apis! {
|
sp_api::impl_runtime_apis! {
|
||||||
impl sp_api::Core<Block> for Runtime {
|
impl sp_api::Core<Block> for Runtime {
|
||||||
|
|||||||
@@ -1068,7 +1068,7 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
(RemoveCollectiveFlip, MigratePalletVersionToStorageVersion),
|
MigratePalletVersionToStorageVersion,
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in transactions.
|
/// The payload being signed in transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
@@ -1084,16 +1084,6 @@ impl OnRuntimeUpgrade for MigratePalletVersionToStorageVersion {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(feature = "disable-runtime-api"))]
|
#[cfg(not(feature = "disable-runtime-api"))]
|
||||||
sp_api::impl_runtime_apis! {
|
sp_api::impl_runtime_apis! {
|
||||||
impl sp_api::Core<Block> for Runtime {
|
impl sp_api::Core<Block> for Runtime {
|
||||||
|
|||||||
Reference in New Issue
Block a user