Skip to content

Commit

Permalink
Fix storage migration check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neopallium committed Jan 14, 2025
1 parent eb494fc commit dd073b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ impl ReducedDiffResult {
self.require_transaction_version_bump.expect("Dit not init run ?")
}

pub fn require_storage_migration(&self) -> bool {
self.require_storage_migration.expect("Dit not init run ?")
}

pub fn compatible(&self) -> bool {
self.compatible.expect("Dit not init run ?")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::fmt::Display;
impl ReducedPalletChange {
pub fn is_storage_compatible(&self) -> bool {
match self {
ReducedPalletChange::StoragePrefix(_) => false,
ReducedPalletChange::Storages(x) => x.compatible(),
_ => true,
}
Expand Down

0 comments on commit dd073b2

Please sign in to comment.