Skip to content

Commit

Permalink
re-add custom runtime upgrade to executive
Browse files Browse the repository at this point in the history
  • Loading branch information
apopiak committed Jun 25, 2020
1 parent b854d6d commit 02e7c41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,6 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signatu
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;
/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules>;

/// Custom runtime upgrade to execute the balances migration before the account migration.
mod custom_migration {
Expand All @@ -862,6 +860,9 @@ mod custom_migration {
}
}

/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<Runtime, Block, frame_system::ChainContext<Runtime>, Runtime, AllModules, custom_migration::Upgrade>;

impl_runtime_apis! {
impl sp_api::Core<Block> for Runtime {
fn version() -> RuntimeVersion {
Expand Down

0 comments on commit 02e7c41

Please sign in to comment.