From 41218ba18407f97f55d4dbdaee97cca11bd00ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= <bkchr@users.noreply.github.com> Date: Tue, 16 Nov 2021 14:02:04 +0100 Subject: [PATCH] Vesting: Fix `post_migration` check (#10280) * Vesting: Fix `post_migration` check As the vesting migration could already have been done, people could already have started to merge schedules. * :facepalm: --- substrate/frame/vesting/src/migrations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/frame/vesting/src/migrations.rs b/substrate/frame/vesting/src/migrations.rs index 086257d285e..f8024926f34 100644 --- a/substrate/frame/vesting/src/migrations.rs +++ b/substrate/frame/vesting/src/migrations.rs @@ -70,7 +70,7 @@ pub(crate) mod v1 { for (_key, schedules) in Vesting::<T>::iter() { assert!( - schedules.len() == 1, + schedules.len() >= 1, "A bounded vec with incorrect count of items was created." ); -- GitLab