mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 02:08:02 +00:00
Fix the migrations for upcoming release (#4692)
This commit is contained in:
@@ -1478,7 +1478,7 @@ pub type Executive = frame_executive::Executive<
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllPalletsWithSystem,
|
||||
(SessionHistoricalPalletPrefixMigration, SchedulerMigrationV3),
|
||||
(SchedulerMigrationV3, RefundNickPalletDeposit),
|
||||
>;
|
||||
/// The payload being signed in the transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
@@ -2885,8 +2885,9 @@ impl OnRuntimeUpgrade for RefundNickPalletDeposit {
|
||||
}
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn pre_migrate() -> Result<(), &'static str> {
|
||||
Self::execute(true)
|
||||
fn pre_upgrade() -> Result<(), &'static str> {
|
||||
let _ = Self::execute(true);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1427,12 +1427,7 @@ pub type Executive = frame_executive::Executive<
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllPalletsWithSystem,
|
||||
(
|
||||
StakingBagsListMigrationV8,
|
||||
SessionHistoricalPalletPrefixMigration,
|
||||
SchedulerMigrationV3,
|
||||
FixCouncilDepositMigration,
|
||||
),
|
||||
(SchedulerMigrationV3, FixCouncilDepositMigration),
|
||||
>;
|
||||
/// The payload being signed in transactions.
|
||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||
@@ -1626,7 +1621,8 @@ impl OnRuntimeUpgrade for FixCouncilDepositMigration {
|
||||
|
||||
#[cfg(feature = "try-runtime")]
|
||||
fn pre_upgrade() -> Result<(), &'static str> {
|
||||
Self::execute(true)
|
||||
let _ = Self::execute(true);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user