From 6909b27d3c3721bdf27b032a52f38628180985fb Mon Sep 17 00:00:00 2001 From: Noulodado Date: Mon, 23 Dec 2024 20:17:56 +0200 Subject: [PATCH 1/2] Use wrap instead of wrapf (#7796) --- modules/light-clients/07-tendermint/client_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/light-clients/07-tendermint/client_state.go b/modules/light-clients/07-tendermint/client_state.go index 9261ed81c09..f400f4cbf47 100644 --- a/modules/light-clients/07-tendermint/client_state.go +++ b/modules/light-clients/07-tendermint/client_state.go @@ -143,7 +143,7 @@ func (cs ClientState) Validate() error { "latest height revision number must match chain id revision number (%d != %d)", cs.LatestHeight.RevisionNumber, clienttypes.ParseChainID(cs.ChainId)) } if cs.LatestHeight.RevisionHeight == 0 { - return errorsmod.Wrapf(ErrInvalidHeaderHeight, "tendermint client's latest height revision height cannot be zero") + return errorsmod.Wrap(ErrInvalidHeaderHeight, "tendermint client's latest height revision height cannot be zero") } if cs.TrustingPeriod >= cs.UnbondingPeriod { return errorsmod.Wrapf( From e4da87607d34a350cc57d4c1cc267ad49e13d3cf Mon Sep 17 00:00:00 2001 From: solkorap7 Date: Tue, 24 Dec 2024 01:19:10 +0700 Subject: [PATCH 2/2] lint unused (#7795) --- modules/light-clients/07-tendermint/client_state_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/light-clients/07-tendermint/client_state_test.go b/modules/light-clients/07-tendermint/client_state_test.go index 1b962873a4c..74935533c7d 100644 --- a/modules/light-clients/07-tendermint/client_state_test.go +++ b/modules/light-clients/07-tendermint/client_state_test.go @@ -21,7 +21,6 @@ func (suite *TendermintTestSuite) TestValidate() { name string clientState *ibctm.ClientState expErr error - expPass bool }{ { name: "valid client",