From da9f8db37dcd41f0e384549a09cdd7433ad45d77 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:37:45 +0200 Subject: [PATCH] fix: move deprecation message to constructor functions (#5837) (#6141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> (cherry picked from commit 531cff929d51313362eac89970def48a4cdfecee) Co-authored-by: Carlos Rodriguez --- modules/core/02-client/types/legacy_proposal.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/core/02-client/types/legacy_proposal.go b/modules/core/02-client/types/legacy_proposal.go index 86629994d25..0a6df0dd323 100644 --- a/modules/core/02-client/types/legacy_proposal.go +++ b/modules/core/02-client/types/legacy_proposal.go @@ -1,5 +1,3 @@ -// Deprecated: The legacy v1beta1 gov types maintained in this file are deprecated and will be removed in a future release. -// Please use MsgIBCSoftwareUpgrade and MsgRecoverClient in favour of the legacy v1beta1 gov proposal types. package types import ( @@ -34,6 +32,9 @@ func init() { } // NewClientUpdateProposal creates a new client update proposal. +// +// Deprecated: The legacy v1beta1 gov ClientUpdateProposal is deprecated +// and will be removed in a future release. Please use MsgRecoverClient instead. func NewClientUpdateProposal(title, description, subjectClientID, substituteClientID string) govtypes.Content { return &ClientUpdateProposal{ Title: title, @@ -76,6 +77,9 @@ func (cup *ClientUpdateProposal) ValidateBasic() error { } // NewUpgradeProposal creates a new IBC breaking upgrade proposal. +// +// Deprecated: The legacy v1beta1 gov UpgradeProposal is deprecated +// and will be removed in a future release. Please use MsgIBCSoftwareUpgrade instead. func NewUpgradeProposal(title, description string, plan upgradetypes.Plan, upgradedClientState exported.ClientState) (govtypes.Content, error) { clientAny, err := PackClientState(upgradedClientState) if err != nil {