Skip to content

Commit

Permalink
Code review rework
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Jan 16, 2024
1 parent 76f1db5 commit 0ecc186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/cmd/ccq/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func parseConfig(byteValue []byte) (PermissionsMap, error) {
return nil, fmt.Errorf(`invalid solana account hex string "%s" for user "%s": %w`, account, user.UserName, err)
}
if len(buf) != query.SolanaPublicKeyLength {
return nil, fmt.Errorf(`invalid solana account hex string "%s" for user "%s, must be 32 bytes`, account, user.UserName)
return nil, fmt.Errorf(`invalid solana account hex string "%s" for user "%s, must be %d bytes`, account, user.UserName, query.SolanaPublicKeyLength)
}
account = solana.PublicKey(buf).String()
} else {
Expand Down

0 comments on commit 0ecc186

Please sign in to comment.