Skip to content

Commit

Permalink
chore: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking committed Mar 11, 2022
1 parent 44bf918 commit c345354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/core/02-client/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ func UnpackConsensusState(any *codectypes.Any) (exported.ConsensusState, error)
return consensusState, nil
}

//TODO: comment
// PackClientMessage constructs a new Any packed with the given value. It returns
// an error if the value can't be casted to a protobuf message or if the concrete
// implemention is not registered to the protobuf codec.
func PackClientMessage(clientMessage exported.ClientMessage) (*codectypes.Any, error) {
msg, ok := clientMessage.(proto.Message)
if !ok {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/exported/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ type ConsensusState interface {
ValidateBasic() error
}

// TODO: comment
// ClientMessage is an interface used for Header and Misbehaviour implementations
type ClientMessage interface {
proto.Message

Expand Down

0 comments on commit c345354

Please sign in to comment.