mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
Add the uniques migration for statemine (#911)
* Add the uniques migration for statemine * return weight from on_runtime_upgrade (#914) need to return the weight from on_runtimie_upgrade(). * cargo update -p sp-io * cargo update -p polkadot-primitives Co-authored-by: hamidra <hamid.alipour@gmail.com>
This commit is contained in:
@@ -782,7 +782,7 @@ pub type Executive = frame_executive::Executive<
|
||||
frame_system::ChainContext<Runtime>,
|
||||
Runtime,
|
||||
AllPalletsWithSystem,
|
||||
RemoveCollectiveFlip,
|
||||
(RemoveCollectiveFlip, UniquesV1Migration),
|
||||
>;
|
||||
|
||||
pub struct RemoveCollectiveFlip;
|
||||
@@ -795,6 +795,13 @@ impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct UniquesV1Migration;
|
||||
impl frame_support::traits::OnRuntimeUpgrade for UniquesV1Migration {
|
||||
fn on_runtime_upgrade() -> Weight {
|
||||
pallet_uniques::migration::migrate_to_v1::<Runtime, _, Uniques>()
|
||||
}
|
||||
}
|
||||
|
||||
impl_runtime_apis! {
|
||||
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
||||
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
||||
|
||||
Reference in New Issue
Block a user