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)