Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Run all tests with try-runtime feature enabled #14396

Merged
merged 3 commits into from
Jun 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some docs
  • Loading branch information
bkchr committed Jun 15, 2023
commit 8cdbca07d549904acf7c24b619bba89c6bbfff88
4 changes: 4 additions & 0 deletions frame/contracts/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ pub trait MigrateSequence: private::Sealed {
}

/// Performs all necessary migrations based on `StorageVersion`.
///
/// If `RUN_ALL_STEPS == true` and `try-runtime` is enabled, this will run all the migrations inside
/// `on_runtime_upgrade`. This should be set to false in tests that want to ensure the step by step
/// migration works.
pub struct Migration<T: Config, const RUN_ALL_STEPS: bool = true>(PhantomData<T>);

#[cfg(feature = "try-runtime")]
Expand Down