mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-23 20:05:49 +00:00
remove applied runtime migrations
This commit is contained in:
@@ -736,18 +736,9 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
OnRuntimeUpgrade,
|
(),
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct OnRuntimeUpgrade;
|
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for OnRuntimeUpgrade {
|
|
||||||
fn on_runtime_upgrade() -> u64 {
|
|
||||||
frame_support::migrations::migrate_from_pallet_version_to_storage_version::<
|
|
||||||
AllPalletsWithSystem,
|
|
||||||
>(&RocksDbWeight::get())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl_runtime_apis! {
|
impl_runtime_apis! {
|
||||||
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
||||||
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
||||||
|
|||||||
@@ -722,18 +722,9 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
OnRuntimeUpgrade,
|
(),
|
||||||
>;
|
>;
|
||||||
|
|
||||||
pub struct OnRuntimeUpgrade;
|
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for OnRuntimeUpgrade {
|
|
||||||
fn on_runtime_upgrade() -> u64 {
|
|
||||||
frame_support::migrations::migrate_from_pallet_version_to_storage_version::<
|
|
||||||
AllPalletsWithSystem,
|
|
||||||
>(&RocksDbWeight::get())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl_runtime_apis! {
|
impl_runtime_apis! {
|
||||||
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
||||||
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
||||||
|
|||||||
Reference in New Issue
Block a user