diff --git a/runtime/development/src/lib.rs b/runtime/development/src/lib.rs index 4eb7cdc498..c7c4f0ad41 100644 --- a/runtime/development/src/lib.rs +++ b/runtime/development/src/lib.rs @@ -118,6 +118,7 @@ pub use crate::xcm::*; pub mod evm; pub mod liquidity_pools; +mod migrations; mod weights; pub mod xcm; @@ -1980,8 +1981,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPalletsWithSystem, - // We don't run migrations on the development runtime - (), + crate::migrations::UpgradeDevelopment1031, >; impl fp_self_contained::SelfContainedCall for RuntimeCall { diff --git a/runtime/development/src/migrations.rs b/runtime/development/src/migrations.rs new file mode 100644 index 0000000000..ee5fee3cfc --- /dev/null +++ b/runtime/development/src/migrations.rs @@ -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, +);