Skip to content

Commit

Permalink
feat: add precompile migration to dev (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli authored Oct 5, 2023
1 parent e945990 commit 3f52665
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ pub use crate::xcm::*;

pub mod evm;
pub mod liquidity_pools;
mod migrations;
mod weights;
pub mod xcm;

Expand Down Expand Up @@ -1980,8 +1981,7 @@ pub type Executive = frame_executive::Executive<
frame_system::ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
// We don't run migrations on the development runtime
(),
crate::migrations::UpgradeDevelopment1031,
>;

impl fp_self_contained::SelfContainedCall for RuntimeCall {
Expand Down
16 changes: 16 additions & 0 deletions runtime/development/src/migrations.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2023 Centrifuge Foundation (centrifuge.io).
//
// This file is part of the Centrifuge chain project.
// Centrifuge is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version (see http://www.gnu.org/licenses).
// Centrifuge is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

pub type UpgradeDevelopment1031 = (
// Sets account codes for all precompiles
runtime_common::migrations::precompile_account_codes::Migration<crate::Runtime, 1031>,
);

0 comments on commit 3f52665

Please sign in to comment.