Skip to content

Commit

Permalink
feat(taiko-client): private key both with and without the hex prefix (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lagunovsky authored May 13, 2024
1 parent 58ad3ee commit f80504a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/taiko-client/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
return nil, fmt.Errorf("invalid JWT secret file: %w", err)
}

l1ProposerPrivKey, err := crypto.ToECDSA(
common.Hex2Bytes(c.String(flags.L1ProposerPrivKey.Name)),
)
l1ProposerPrivKey, err := crypto.ToECDSA(common.FromHex(c.String(flags.L1ProverPrivKey.Name)))
if err != nil {
return nil, fmt.Errorf("invalid L1 proposer private key: %w", err)
}
Expand Down

0 comments on commit f80504a

Please sign in to comment.