Addressed issues for PR63

This commit is contained in:
infosecual
2023-02-13 10:51:06 -06:00
parent 548442c33b
commit 6dcd3c9978
3 changed files with 16 additions and 31 deletions

View File

@@ -177,7 +177,7 @@ func (c *ChainInfo) FetchValidatorInfo(ctx context.Context, id string) (*Validat
return nil, errors.New("no validator specified")
case strings.HasPrefix(id, "0x"):
// ID is a public key.
// check that the key is the correct length.
// Check that the key is the correct length.
if len(id) != 98 {
return nil, errors.New("invalid public key: incorrect length")
}