@@ -256,8 +256,11 @@ func (suite *SoloMachineTestSuite) TestVerifyClientState() {
256
256
expSeq = tc .clientState .Sequence + 1
257
257
}
258
258
259
+ // NOTE: to replicate the ordering of connection handshake, we must decrement proof height by 1
260
+ height := clienttypes .NewHeight (solomachine .GetHeight ().GetRevisionNumber (), solomachine .GetHeight ().GetRevisionHeight ()- 1 )
261
+
259
262
err := tc .clientState .VerifyClientState (
260
- suite .store , suite .chainA .Codec , solomachine . GetHeight () , tc .prefix , counterpartyClientIdentifier , tc .proof , clientState ,
263
+ suite .store , suite .chainA .Codec , height , tc .prefix , counterpartyClientIdentifier , tc .proof , clientState ,
261
264
)
262
265
263
266
if tc .expPass {
@@ -386,8 +389,11 @@ func (suite *SoloMachineTestSuite) TestVerifyClientConsensusState() {
386
389
expSeq = tc .clientState .Sequence + 1
387
390
}
388
391
392
+ // NOTE: to replicate the ordering of connection handshake, we must decrement proof height by 1
393
+ height := clienttypes .NewHeight (solomachine .GetHeight ().GetRevisionNumber (), solomachine .GetHeight ().GetRevisionHeight ()- 2 )
394
+
389
395
err := tc .clientState .VerifyClientConsensusState (
390
- suite .store , suite .chainA .Codec , solomachine . GetHeight () , counterpartyClientIdentifier , consensusHeight , tc .prefix , tc .proof , consensusState ,
396
+ suite .store , suite .chainA .Codec , height , counterpartyClientIdentifier , consensusHeight , tc .prefix , tc .proof , consensusState ,
391
397
)
392
398
393
399
if tc .expPass {
0 commit comments