From 816fcb5f3502ca72249bcd79e980365f801554a4 Mon Sep 17 00:00:00 2001 From: rocksload Date: Sat, 11 Oct 2025 20:38:39 +0800 Subject: [PATCH] refactor: use reflect.TypeFor Signed-off-by: rocksload --- upgrades/software/v0.26.0/upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrades/software/v0.26.0/upgrade.go b/upgrades/software/v0.26.0/upgrade.go index 78ac996eef..a268ec755e 100644 --- a/upgrades/software/v0.26.0/upgrade.go +++ b/upgrades/software/v0.26.0/upgrade.go @@ -90,7 +90,7 @@ func (up *upgrade) migrateDeploymentAuthz(ctx sdk.Context) error { authzGen := grant.grant.GetAuthorization() authzOld, valid := authzGen.(*v1beta2dtypes.DepositDeploymentAuthorization) if !valid { - return fmt.Errorf("unexpected authorization type. expected (%s), actual (%s)", reflect.TypeOf(&v1beta2dtypes.DepositDeploymentAuthorization{}), reflect.TypeOf(authzGen)) + return fmt.Errorf("unexpected authorization type. expected (%s), actual (%s)", reflect.TypeFor[*v1beta2dtypes.DepositDeploymentAuthorization](), reflect.TypeOf(authzGen)) } err := up.Keepers.Cosmos.Authz.DeleteGrant(ctx, grant.grantee, grant.granter, msgUrlOld)