mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 16:21:02 +00:00
remove stale migrations (#1914)
This commit is contained in:
@@ -890,34 +890,7 @@ impl pallet_proxy::Trait for Runtime {
|
|||||||
pub struct CustomOnRuntimeUpgrade;
|
pub struct CustomOnRuntimeUpgrade;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
||||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||||
// Update scheduler origin usage
|
0
|
||||||
#[derive(Encode, Decode)]
|
|
||||||
#[allow(non_camel_case_types)]
|
|
||||||
pub enum OldOriginCaller {
|
|
||||||
system(frame_system::Origin<Runtime>),
|
|
||||||
pallet_collective_Instance1(
|
|
||||||
pallet_collective::Origin<Runtime, pallet_collective::Instance1>
|
|
||||||
),
|
|
||||||
pallet_collective_Instance2(
|
|
||||||
pallet_collective::Origin<Runtime, pallet_collective::Instance2>
|
|
||||||
),
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Into<OriginCaller> for OldOriginCaller {
|
|
||||||
fn into(self) -> OriginCaller {
|
|
||||||
match self {
|
|
||||||
OldOriginCaller::system(o) => OriginCaller::system(o),
|
|
||||||
OldOriginCaller::pallet_collective_Instance1(o) =>
|
|
||||||
OriginCaller::pallet_collective_Instance1(o),
|
|
||||||
OldOriginCaller::pallet_collective_Instance2(o) =>
|
|
||||||
OriginCaller::pallet_collective_Instance2(o),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pallet_scheduler::Module::<Runtime>::migrate_origin::<OldOriginCaller>();
|
|
||||||
|
|
||||||
<Runtime as frame_system::Trait>::MaximumBlockWeight::get()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -895,34 +895,7 @@ impl pallet_proxy::Trait for Runtime {
|
|||||||
pub struct CustomOnRuntimeUpgrade;
|
pub struct CustomOnRuntimeUpgrade;
|
||||||
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
||||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||||
// Update scheduler origin usage
|
0
|
||||||
#[derive(Encode, Decode)]
|
|
||||||
#[allow(non_camel_case_types)]
|
|
||||||
pub enum OldOriginCaller {
|
|
||||||
system(frame_system::Origin<Runtime>),
|
|
||||||
pallet_collective_Instance1(
|
|
||||||
pallet_collective::Origin<Runtime, pallet_collective::Instance1>
|
|
||||||
),
|
|
||||||
pallet_collective_Instance2(
|
|
||||||
pallet_collective::Origin<Runtime, pallet_collective::Instance2>
|
|
||||||
),
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Into<OriginCaller> for OldOriginCaller {
|
|
||||||
fn into(self) -> OriginCaller {
|
|
||||||
match self {
|
|
||||||
OldOriginCaller::system(o) => OriginCaller::system(o),
|
|
||||||
OldOriginCaller::pallet_collective_Instance1(o) =>
|
|
||||||
OriginCaller::pallet_collective_Instance1(o),
|
|
||||||
OldOriginCaller::pallet_collective_Instance2(o) =>
|
|
||||||
OriginCaller::pallet_collective_Instance2(o),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pallet_scheduler::Module::<Runtime>::migrate_origin::<OldOriginCaller>();
|
|
||||||
|
|
||||||
<Runtime as frame_system::Trait>::MaximumBlockWeight::get()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user