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

Commit 657ac6e

Browse files
pgherveouathei
andauthored
Apply suggestions from code review
Co-authored-by: Alexander Theißen <[email protected]>
1 parent 1194ad3 commit 657ac6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frame/contracts/src/migration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ pub trait Migrate: Codec + MaxEncodedLen + Default {
6868
/// Returns whether the migration is finished and the weight consumed.
6969
fn step(&mut self) -> (IsFinished, Weight);
7070

71-
/// Execute some pre-checks prior to running this step.
71+
/// Execute some pre-checks prior to running the first step of this migration.
7272
#[cfg(feature = "try-runtime")]
7373
fn pre_upgrade_step() -> Result<Vec<u8>, &'static str> {
7474
Ok(Vec::new())
7575
}
7676

77-
/// Execute some post-checks after running this step
77+
/// Execute some post-checks after running the last step of this migration.
7878
#[cfg(feature = "try-runtime")]
7979
fn post_upgrade_step(_state: Vec<u8>) -> Result<(), &'static str> {
8080
Ok(())

0 commit comments

Comments
 (0)