From 531cff929d51313362eac89970def48a4cdfecee Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Wed, 14 Feb 2024 22:51:20 +0100 Subject: [PATCH] fix: move deprecation message to constructor functions (#5837) 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> --- 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 3ce2e0a0aed..05254354695 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 ( @@ -33,6 +31,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, @@ -75,6 +76,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 {