From eddff3c4134be5a9d70d22208b4cc7f302ea7925 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 7 Aug 2023 18:13:15 +0800 Subject: [PATCH] resolve with map --- x/genutil/client/cli/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/genutil/client/cli/migrate.go b/x/genutil/client/cli/migrate.go index ee7816e12085..33b2d0c760b2 100644 --- a/x/genutil/client/cli/migrate.go +++ b/x/genutil/client/cli/migrate.go @@ -100,7 +100,7 @@ func MigrateHandler(cmd *cobra.Command, args []string, migrations types.Migratio return errors.Wrap(err, "failed to JSON unmarshal initial genesis state") } - migrationFunc := GetMigrationCallback(target) + migrationFunc := migrations[target] if migrationFunc == nil { return fmt.Errorf("unknown migration function for version: %s", target) }