Skip to content

Commit

Permalink
update test, pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
charleenfei committed Nov 15, 2022
1 parent bcb9e09 commit e182349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/light-clients/06-solomachine/client_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/06-solomachine/client_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ func (suite *SoloMachineTestSuite) TestVerifyMembership() {
{
"empty path",
func() {
path = []byte("")
path = commitmenttypes.MerklePath{}
},
false,
},
Expand Down

0 comments on commit e182349

Please sign in to comment.