Skip to content

Commit

Permalink
chore: Change pkbytes to hex in register-validator cmd (ethereum-opti…
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry authored Jul 20, 2023
1 parent 7de0a07 commit 729171e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/valcli/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ var registerValidator = cli.Command{
}

func registerVal(ctx *cli.Context) error {
pkBytes := []byte(ctx.Args().First())
pkHexStr := ctx.Args().First()
pkBytes, err := hex.DecodeString(pkHexStr)
if err != nil {
return err
}

daemonAddress := ctx.String(valdDaemonAddressFlag)
rpcClient, cleanUp, err := dc.NewValidatorServiceGRpcClient(daemonAddress)
if err != nil {
Expand Down

0 comments on commit 729171e

Please sign in to comment.