Skip to content

Commit

Permalink
Fix post_update version check in try-runtime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev committed May 28, 2024
1 parent adae978 commit 989e2fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/gear-program/src/migrations/allocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateAllocations<T> {
"incorrect count of elements old {} != new {}",
);
ensure!(
Pallet::<T>::current_storage_version() == MIGRATE_TO_VERSION,
Pallet::<T>::on_chain_storage_version() == MIGRATE_TO_VERSION,
"incorrect storage version after migration"
);
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/gear-program/src/migrations/v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ where
"Active programs total balance is not as expected: {} != {}",
);
ensure!(
Pallet::<T>::current_storage_version() == MIGRATE_TO_VERSION,
Pallet::<T>::on_chain_storage_version() == MIGRATE_TO_VERSION,
"incorrect storage version after migration"
);
}
Expand Down

0 comments on commit 989e2fe

Please sign in to comment.