@@ -72,7 +72,6 @@ func (s *ClientTestSuite) TestScheduleIBCUpgrade_Succeeds() {
72
72
chainAWallet := s .CreateUserOnChainA (ctx , testvalues .StartingTokenAmount )
73
73
74
74
const planHeight = int64 (300 )
75
- const legacyPlanHeight = planHeight * 2
76
75
var newChainID string
77
76
78
77
t .Run ("execute proposal for MsgIBCSoftwareUpgrade" , func (t * testing.T ) {
@@ -130,34 +129,6 @@ func (s *ClientTestSuite) TestScheduleIBCUpgrade_Succeeds() {
130
129
s .Require ().Equal ("upgrade-client" , plan .Name )
131
130
s .Require ().Equal (planHeight , plan .Height )
132
131
})
133
-
134
- t .Run ("ensure legacy proposal does not succeed" , func (t * testing.T ) {
135
- authority , err := query .ModuleAccountAddress (ctx , govtypes .ModuleName , chainA )
136
- s .Require ().NoError (err )
137
- s .Require ().NotNil (authority )
138
-
139
- clientState , err := query .ClientState (ctx , chainB , ibctesting .FirstClientID )
140
- s .Require ().NoError (err )
141
-
142
- originalChainID := clientState .(* ibctm.ClientState ).ChainId
143
- revisionNumber := clienttypes .ParseChainID (originalChainID )
144
- // increment revision number even with new chain ID to prevent loss of misbehaviour detection support
145
- newChainID , err = clienttypes .SetRevisionNumber (originalChainID , revisionNumber + 1 )
146
- s .Require ().NoError (err )
147
- s .Require ().NotEqual (originalChainID , newChainID )
148
-
149
- upgradedClientState := clientState .(* ibctm.ClientState ).ZeroCustomFields ()
150
- upgradedClientState .ChainId = newChainID
151
-
152
- legacyUpgradeProposal , err := clienttypes .NewUpgradeProposal (ibctesting .Title , ibctesting .Description , upgradetypes.Plan {
153
- Name : "upgrade-client-legacy" ,
154
- Height : legacyPlanHeight ,
155
- }, upgradedClientState )
156
-
157
- s .Require ().NoError (err )
158
- txResp := s .ExecuteGovV1Beta1Proposal (ctx , chainA , chainAWallet , legacyUpgradeProposal )
159
- s .AssertTxFailure (txResp , govtypes .ErrInvalidProposalContent )
160
- })
161
132
}
162
133
163
134
// TestRecoverClient_Succeeds tests that a governance proposal to recover a client using a MsgRecoverClient is successful.
0 commit comments