File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
substrate-node/runtime/src Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,7 @@ pub type Executive = frame_executive::Executive<
776
776
type Migrations = (
777
777
pallet_tfgrid:: migrations:: v17:: FixFarmPublicIps < Runtime > ,
778
778
pallet_tft_bridge:: migrations:: v2:: MigrateBurnTransactionsV2 < Runtime > ,
779
+ migrations:: update_storage_version:: UpdateStorageVersion ,
779
780
) ;
780
781
781
782
// follows Substrate's non destructive way of eliminating otherwise required
Original file line number Diff line number Diff line change
1
+ pub mod remove_sudo;
1
2
pub mod tfgrid_v15_smart_contract_v8;
2
- pub mod remove_sudo ;
3
+ pub mod update_storage_version ;
Original file line number Diff line number Diff line change
1
+ pub struct UpdateStorageVersion ;
2
+ impl frame_support:: traits:: OnRuntimeUpgrade for UpdateStorageVersion {
3
+ fn on_runtime_upgrade ( ) -> frame_support:: weights:: Weight {
4
+ frame_support:: pallet_prelude:: StorageVersion :: new ( 1 ) . put :: < crate :: Balances > ( ) ;
5
+ frame_support:: pallet_prelude:: StorageVersion :: new ( 4 ) . put :: < crate :: Scheduler > ( ) ;
6
+ frame_support:: pallet_prelude:: StorageVersion :: new ( 1 ) . put :: < crate :: Historical > ( ) ;
7
+
8
+ frame_support:: weights:: Weight :: from_all ( 3 )
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments