From fe8dc1ab57ea8f0ccb504ae77f10eee229f3d77a Mon Sep 17 00:00:00 2001
From: Philip Offtermatt
Date: Thu, 2 May 2024 08:49:25 +0200
Subject: [PATCH] Fix migration function name
---
x/ccv/provider/migrations/migrator.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/x/ccv/provider/migrations/migrator.go b/x/ccv/provider/migrations/migrator.go
index ea6e9e00d5..2b20ee1f01 100644
--- a/x/ccv/provider/migrations/migrator.go
+++ b/x/ccv/provider/migrations/migrator.go
@@ -41,9 +41,9 @@ func (m Migrator) Migrate3to4(ctx sdktypes.Context) error {
return nil
}
-// MigrateXtoY migrates x/ccvprovider state from consensus version X to Y.
+// Migrate4to5 migrates x/ccvprovider state from consensus version 4 to 5.
// The migration consists of setting a top N of 95 for all registered consumer chains.
-func (m Migrator) MigrateXtoY(ctx sdktypes.Context) error {
+func (m Migrator) Migrate4to5(ctx sdktypes.Context) error {
v5.MigrateTopNForRegisteredChains(ctx, m.providerKeeper)
return nil
}