Skip to content

Commit

Permalink
removed nft migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
zees-dev committed Aug 29, 2024
1 parent bb76454 commit 4996f74
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions runtime/src/migrations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -34,22 +33,19 @@ use sp_std::vec::Vec;
pub struct AllMigrations;
impl OnRuntimeUpgrade for AllMigrations {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
let data = nft::Upgrade::pre_upgrade()?;
let _ = futurepass::Upgrade::pre_upgrade()?;
fn pre_upgrade() -> Result<Vec<u8>, 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<u8>) -> Result<(), &'static str> {
nft::Upgrade::post_upgrade(state.clone())?;
fn post_upgrade(state: Vec<u8>) -> Result<(), DispatchError> {
futurepass::Upgrade::post_upgrade(state)?;
Ok(())
}
Expand Down

0 comments on commit 4996f74

Please sign in to comment.