Skip to content

Commit

Permalink
set xcm version to 2 upon upgrade (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Oct 26, 2021
1 parent 8b27d36 commit f82eb95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/karura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1879,9 +1879,18 @@ pub type Executive = frame_executive::Executive<
TechnicalCommitteeStoragePrefixMigration,
MigrateTipsPalletPrefix,
BountiesPrefixMigration,
SetXcmVersion,
),
>;

pub struct SetXcmVersion;
impl OnRuntimeUpgrade for SetXcmVersion {
fn on_runtime_upgrade() -> u64 {
let _ = PolkadotXcm::force_default_xcm_version(Origin::root(), Some(2));
RocksDbWeight::get().writes(1)
}
}

const GENERAL_COUNCIL_MEMBERSHIP_OLD_PREFIX: &str = "Instance1Membership";
/// Migrate from `Instance1Membership` to the new pallet prefix `GeneralCouncilMembership`
pub struct GeneralCouncilMembershipStoragePrefixMigration;
Expand Down

0 comments on commit f82eb95

Please sign in to comment.