From d0b38dd8ec8efbdeaea8deb02c3c65e8f6ea5996 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Tue, 2 May 2023 14:15:29 +0200 Subject: [PATCH] fix --- frame/contracts/src/migration.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/contracts/src/migration.rs b/frame/contracts/src/migration.rs index 039c019b41e02..4e11b49eb9460 100644 --- a/frame/contracts/src/migration.rs +++ b/frame/contracts/src/migration.rs @@ -117,7 +117,7 @@ pub trait MigrateSequence: private::Sealed { fn integrity_test(); /// Returns whether migration from `in_storage` to `target` is supported. - /// A migration is supported if (in_storage + 1, target) == VERSION_RANGE. + /// A migration is supported if (in_storage + 1, target) is contained by `VERSION_RANGE`. fn is_upgrade_supported(in_storage: StorageVersion, target: StorageVersion) -> bool { if in_storage == target { return true