Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add necessary storage migrations #362

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,19 +596,21 @@ pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
/// The payload being signed in transactions.
pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;

/// storage migrations to be applied upon runtime upgrade
pub type Migrations = (
pallet_grandpa::migrations::MigrateV4ToV5<Runtime>,
pallet_encointer_ceremonies::migrations::v2::MigrateToV2<Runtime>,
);

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
Block,
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
(
// can migrate from v0 or v1 to v2
pallet_encointer_communities::migrations::v2::MigrateV0orV1toV2<Runtime>,
// expected to be noop. but need to try-runtime checks first!
pallet_encointer_ceremonies::migrations::v1::MigrateToV1<Runtime>,
),
Migrations,
>;

#[cfg(feature = "runtime-benchmarks")]
Expand Down
Loading