From e182349d30bf291e59da79967f7746077cbeda6d Mon Sep 17 00:00:00 2001 From: Charly Date: Tue, 15 Nov 2022 16:23:31 +0100 Subject: [PATCH] update test, pr comments --- modules/light-clients/06-solomachine/client_state.go | 2 +- modules/light-clients/06-solomachine/client_state_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/light-clients/06-solomachine/client_state.go b/modules/light-clients/06-solomachine/client_state.go index 94911929549..0d515356eee 100644 --- a/modules/light-clients/06-solomachine/client_state.go +++ b/modules/light-clients/06-solomachine/client_state.go @@ -125,7 +125,7 @@ func (cs *ClientState) VerifyMembership( return sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "expected %T, got %T", commitmenttypes.MerklePath{}, path) } - if len(merklePath.String()) == 0 { + if merklePath.Empty() { return sdkerrors.Wrap(commitmenttypes.ErrInvalidProof, "path is empty") } diff --git a/modules/light-clients/06-solomachine/client_state_test.go b/modules/light-clients/06-solomachine/client_state_test.go index 58511619939..11507a5eda9 100644 --- a/modules/light-clients/06-solomachine/client_state_test.go +++ b/modules/light-clients/06-solomachine/client_state_test.go @@ -520,7 +520,7 @@ func (suite *SoloMachineTestSuite) TestVerifyMembership() { { "empty path", func() { - path = []byte("") + path = commitmenttypes.MerklePath{} }, false, },