mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-09 14:07:56 -05:00
Addressed issues for PR63
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user