Skip to content

Commit

Permalink
fix: move deprecation message to constructor functions (#5837) (#6141)
Browse files Browse the repository at this point in the history
Co-authored-by: colin axnér <[email protected]>
(cherry picked from commit 531cff9)

Co-authored-by: Carlos Rodriguez <[email protected]>
  • Loading branch information
mergify[bot] and Carlos Rodriguez authored Apr 11, 2024
1 parent 98674c7 commit da9f8db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/core/02-client/types/legacy_proposal.go
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit da9f8db

Please sign in to comment.