mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
remove stale migrations (#1914)
This commit is contained in:
@@ -890,34 +890,7 @@ impl pallet_proxy::Trait for Runtime {
|
||||
pub struct CustomOnRuntimeUpgrade;
|
||||
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
|
||||
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||
// Update scheduler origin usage
|
||||
#[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()
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user