From 74c53fe6e2a735ead1cf1e2b8744ad6831775bcc Mon Sep 17 00:00:00 2001 From: yihuang Date: Fri, 13 Oct 2023 15:22:34 +0800 Subject: [PATCH] Update x/bank/migrations/v4/store.go Co-authored-by: mmsqe Signed-off-by: yihuang --- x/bank/migrations/v4/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/bank/migrations/v4/store.go b/x/bank/migrations/v4/store.go index 2a0482838fa0..f96357d1d3e7 100644 --- a/x/bank/migrations/v4/store.go +++ b/x/bank/migrations/v4/store.go @@ -22,7 +22,7 @@ func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, legacySubspace legacySubspace.GetParamSet(ctx, &currParams) // it's migrated to the x/bank module store, so delete from the params - currParams.SendEnabled = nil + currParams = types.NewParams(currParams.DefaultSendEnabled) if err := currParams.Validate(); err != nil { return err