From 7fb222e6bca31ae3fd705064e1ca611f4b698b48 Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Sat, 3 Aug 2024 12:18:16 +0800 Subject: [PATCH] fix mint migration --- x/mint/migrations/v2/migrate.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/mint/migrations/v2/migrate.go b/x/mint/migrations/v2/migrate.go index 22f814ffc6..5f5d2c7441 100644 --- a/x/mint/migrations/v2/migrate.go +++ b/x/mint/migrations/v2/migrate.go @@ -23,8 +23,7 @@ func Migrate( legacySubspace exported.Subspace, cdc codec.BinaryCodec, ) error { - var currParams types.Params - legacySubspace.GetParamSet(ctx, &currParams) + var currParams = types.DefaultParams() if err := currParams.Validate(); err != nil { return err