From 4996f7469b1cbf3be36e3691752f261446dce56e Mon Sep 17 00:00:00 2001 From: zees-dev Date: Fri, 30 Aug 2024 02:22:45 +1200 Subject: [PATCH] removed nft migrations --- runtime/src/migrations/mod.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/runtime/src/migrations/mod.rs b/runtime/src/migrations/mod.rs index 8c8d85789..e3a428872 100644 --- a/runtime/src/migrations/mod.rs +++ b/runtime/src/migrations/mod.rs @@ -14,7 +14,6 @@ // You may obtain a copy of the License at the root of this project source code mod futurepass; -mod nft; use codec::{Decode, Encode, FullCodec, FullEncode}; use frame_support::{ @@ -34,22 +33,19 @@ use sp_std::vec::Vec; pub struct AllMigrations; impl OnRuntimeUpgrade for AllMigrations { #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, &'static str> { - let data = nft::Upgrade::pre_upgrade()?; - let _ = futurepass::Upgrade::pre_upgrade()?; + fn pre_upgrade() -> Result, DispatchError> { + let data = futurepass::Upgrade::pre_upgrade()?; Ok(data) } fn on_runtime_upgrade() -> Weight { - let mut weight = Weight::from_ref_time(0_u64); - weight += nft::Upgrade::on_runtime_upgrade(); + let mut weight = Weight::from_all(0_u64); weight += futurepass::Upgrade::on_runtime_upgrade(); weight } #[cfg(feature = "try-runtime")] - fn post_upgrade(state: Vec) -> Result<(), &'static str> { - nft::Upgrade::post_upgrade(state.clone())?; + fn post_upgrade(state: Vec) -> Result<(), DispatchError> { futurepass::Upgrade::post_upgrade(state)?; Ok(()) }