Skip to content

Commit 9c8056e

Browse files
committed
Fix error message
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
1 parent 47783f5 commit 9c8056e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snow/validators/gvalidators/validator_state_client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
)
1818

1919
var (
20-
_ validators.State = (*Client)(nil)
21-
errFailedPublicKeyDecompress = errors.New("couldn't decompress public key")
20+
_ validators.State = (*Client)(nil)
21+
errFailedPublicKeyDeserialize = errors.New("couldn't deserialize public key")
2222
)
2323

2424
type Client struct {
@@ -82,7 +82,7 @@ func (c *Client) GetValidatorSet(
8282
// to the P-Chain and served by the gRPC server.
8383
publicKey = new(bls.PublicKey).Deserialize(validator.PublicKey)
8484
if publicKey == nil {
85-
return nil, errFailedPublicKeyDecompress
85+
return nil, errFailedPublicKeyDeserialize
8686
}
8787
}
8888
vdrs[nodeID] = &validators.GetValidatorOutput{

0 commit comments

Comments
 (0)